And how did you create your Controllers?
Have you solve the errors you have?
Is there a plugin which can do a code sharing?
have you configured your hosting and domain?
How about the dashboard?
When you access your domain, what does it return?
Have you solved it finally?
Could you share the solution?
Problem is that i am not getting user liked data based on id of like table and stuck on how to do this as no like model is there
Help me in this i mstuck
What is the PHP version installed on your machine
php artisan make:controller IndexController
it should have a correct namespace of
namespace AppHttpControllers;
unlesss you create a sub-folder inside the controller,
php artisan make:controller Front/IndexController
in laravel_project/App/Http/Controllers/Front/IndexController.php
namespace AppHttpControllersFront;
Useful points
Thanks bro
7.4.2
Thanks bro
Have you solve the errors you have?
Not yet
I woke up 10 minutes ago
I will try it soon
If you have access to your pc I will thank you if you can take a look at my project by “code with me” plugin
I woke up 10 minutes ago
I will try it soon
If you have access to your pc I will thank you if you can take a look at my project by “code with me” plugin
I, do right now. But VSCode is the one I use.
Is there a plugin which can do a code sharing?
I saw something in VSCode extensions.
Live Share
thouh I haven’t use it.
Or do you have git repo? So we can collaborate there and fix some other errors you might have
i can’n send share link from vs code because of robot
DM me instead the link
uksort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero
On my local machine the routes work perfect and I dont have a problem.The only difference is that on my local machine the php version is 7.4.2 while on the server its php 8…Can that be the issue?? as I cannot access any of my routes
uksort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero
On my local machine the routes work perfect and I dont have a problem.The only difference is that on my local machine the php version is 7.4.2 while on the server its php 8…Can that be the issue?? as I cannot access any of my routes
On the server I also used forcerooturl() because all the routes were still localhost
uksort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or greater than zero
On my local machine the routes work perfect and I dont have a problem.The only difference is that on my local machine the php version is 7.4.2 while on the server its php 8…Can that be the issue?? as I cannot access any of my routes
The PHP version is definitely the issue. downgrade php to 7.4 or upgrade Laravel to latest available version.
Make sure you clear route cache and set APP_URL correctly, you don’t actually need forceRootUrl
Thanks Nazmul Let me do it and see
I have set the app_url correctly starting with the url protocol and commented out the forceurl code and also cleared route cache but when I hover on the url it shows localhost when I uncomment the forceurl code is when the url is picking my domain
have you configured your hosting and domain?
Can I see your route files (web.php)
<?php
use IlluminateSupportFacadesRoute;
use AppHttpControllersProgramController;
Route::middleware([‘auth:sanctum’, ‘verified’])->get(‘/program’, function () {
return view(‘program.list’);
})->name(‘program’);
Route::middleware([‘auth:sanctum’, ‘verified’])->get(‘/dashboard’, function () {
return view(‘dashboard’);
})->name(‘dashboard’);
The program route is the one with the issue
<?php
use IlluminateSupportFacadesRoute;
use AppHttpControllersProgramController;
Route::middleware([‘auth:sanctum’, ‘verified’])->get(‘/program’, function () {
return view(‘program.list’);
})->name(‘program’);
Route::middleware([‘auth:sanctum’, ‘verified’])->get(‘/dashboard’, function () {
return view(‘dashboard’);
})->name(‘dashboard’);
The program route is the one with the issue
How about the dashboard? What URL it returns
The dashboard is the default dashboard that is there once laravel is installed and it is rendering the dashboard view perfectly
Have you solved it finally?
yes
@miraikara39 found the error
that was all about local host server
rewrite_mod
wasn’t working and in my php.ini file there was no rewrite_mod
i was using xampp
php version 7.4
i thank you and @miraikara39 and all the friends who helped me
Welcome