All Questions
951
questions
0
votes
1
answer
33
views
How to fetch data from database using multiple dropdown in form in Laravel 5.4?
I have a Blade view which is basically a form consists of 3 dropdown value such as Division, District and Upazila:
My index blade looks like below image:
After the submit button clicked,it shows me ...
0
votes
1
answer
90
views
Getting list of route from a hosted laravel website on 000webhost.com
I have uploaded the laravel 5 project to the cPanel. This is the link for the hosted project https://unattained-telecomm.000webhostapp.com/
Thank you.
I can get the route list locally using php ...
0
votes
1
answer
178
views
Laravel many times route access
I want to know if Laravel has any route control, not for authentication, but for counting access. That is, I need to know the many times I have accessed this route. Is it possible in Laravel?
Or how ...
1
vote
2
answers
319
views
How to stop the GET method is not supported for this route from showing?
I have a working Laravel project with loads of different routes.
I'm currently testing it and one of my tests was to check if a user were to use a delete or post route from the URL. I didn't know what ...
0
votes
1
answer
772
views
Laravel 5.8: How to get the matched URL path without queries or parameters in the middle ware?
I'm trying to get current url in laravel without any parameters or query parameters,
let's assume I've this route in the api.php file:
test/{id}/get-test-data/{type}
and the url is
test/395/get-test-...
2
votes
0
answers
73
views
Laravel 5.1 - Some pages are not found on production serveur - "Page you are looking for could not be found"
I have a problem with some "routes" in my old Laravel 5.1.46 project.
When I try to access to some routes, like admin/exercices/creer or admin/exercices/1928, I have this: "Sorry, the ...
2
votes
3
answers
3k
views
Laravel route group and middlewares
i am working on a laravel project with users who can have status verified (email verified).
on the other hand, users can have a subscription which is verified by a "subscriptions" middleware....
1
vote
2
answers
348
views
Getting error "Target Class Not Found" while trying to use old way of calling controllers at web.php
I'm using Laravel 8 and I wanted to use the old way of calling controller and routes in web.php.
So instead of saying this:
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])-&...
2
votes
2
answers
8k
views
Laravel Error: Unable to prepare route [login] for serialization
I'm getting a Laravel error when trying to clear the routes cache:
Unable to prepare route login for serialization. Another route has already been assigned the name auth.login.
I have two auth routes:
...
-2
votes
2
answers
105
views
Laravel not accepting POST Method
I been trying to add a route to my button, whereby I have declared the method to POST, but when I click on the button, an error prompt saying it is using GET method.
Here is my view
<form method=&...
-1
votes
2
answers
359
views
Undefined variable in app.blade.php laravel5.4
i want to list the name of courses from my database in my navbar menu (app view) :
@foreach ($cours as $cour)
<li><a class="dropdown-item">{{ $cour->nom }}&...
0
votes
0
answers
122
views
Alert function not working after ajax call in laravel
<script>
$(function () {
$("#portal_register_post").validate({
rules: {
user_email: {
required:true,
...
0
votes
2
answers
146
views
Need help to restrict route access to some id's
i need that guest's can access only to link 'fixtures/1' and 'fixtures/2'
when they manage to other id's, for exmpl 'fixtures/3' they should get something like "page not found"
i tryied like ...
1
vote
1
answer
51
views
Route [x] not defined when using auth middleware
I am making a website with laravel but i am getting an error while using middleware auth. it says Route[x] not defined.
i am using laravel 5.8 please some one help me
0
votes
1
answer
42
views
why laraval routing return the object instead of echoing it or printing it directlly?
in laravel routing we can pass a closure and it returns the result. so my question is why it cannot echo or print the result than returning it?. is it the closurity property of php or laraveles ...