Giter Site home page Giter Site logo

Url Length Exceeded about laravel-blog HOT 3 CLOSED

binshops avatar binshops commented on May 8, 2024 1
Url Length Exceeded

from laravel-blog.

Comments (3)

usman-xs4arabia-dev avatar usman-xs4arabia-dev commented on May 8, 2024 2

In routes.php you should update your urls
From
Route::get('/edit_post_toggle/{blogPostId}',
'BinshopsAdminController@edit_post_toggle')
->name('binshopsblog.admin.edit_post_toggle');

Route::patch('/edit_post/{blogPostId}',
'BinshopsAdminController@update_post')
->name('binshopsblog.admin.update_post');

To
Route::post('/edit_post_toggle/{blogPostId}',
'BinshopsAdminController@edit_post_toggle')
->name('binshopsblog.admin.edit_post_toggle');

Route::post('/edit_post/{blogPostId}',
'BinshopsAdminController@update_post')
->name('binshopsblog.admin.update_post');

And then in edit_post.blade.php
remove @method("patch")
And update this jquery line $("#edit-post-form").attr("method", "get"); to $("#edit-post-form").attr("method", "post");

Just these two updates nothing else all the things will work normally no need for major changes.

Hopefully you will understand the problem and resolve it asap.

from laravel-blog.

samberrry avatar samberrry commented on May 8, 2024

@usman-xs4arabia-dev thanks for reporting. We will have an update soon.

from laravel-blog.

samberrry avatar samberrry commented on May 8, 2024

thanks for your contribution.
PR merged: #65

from laravel-blog.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.