Routing system doesn't work in my project laravel 5.8

930 views
Skip to first unread message

Jhonatas Garagnani

unread,
May 25, 2019, 4:21:00 PM5/25/19
to PHP Desktop
I am using laravel 5.8 to create a PHP Desktop APP and I can not open laravel routes, like login and registration. What should I do?

Czarek Tomczak

unread,
May 25, 2019, 6:39:19 PM5/25/19
to PHP Desktop
There are instructions on configuring routing with Laravel 4.2. I don't know if it works with latest Laravel version. See:

Maybe try this:

Joe M

unread,
May 25, 2019, 7:52:13 PM5/25/19
to PHP Desktop
I managed to get 5.8 working, however the routes did not work until I properly prefixed them with the proper structure. I am thinking maybe a rewrite rule might fix this but haven't had time to try it, for now this works.

Example:

Route::get('www/public/main', 'Showdata@main')->name('main');

this will route /main and call Showdata/main

Hope this helps

Jhonatas Garagnani

unread,
May 27, 2019, 6:29:29 AM5/27/19
to PHP Desktop
Thank's work. And congratulations about project!

ceno...@gmail.com

unread,
Aug 5, 2019, 11:01:12 AM8/5/19
to PHP Desktop
Where you able to connect the database? how did you do it?

Iheb

unread,
Aug 9, 2019, 3:40:44 PM8/9/19
to PHP Desktop
i tried the same route and it's doesn't work for me

efl...@gmail.com

unread,
Oct 17, 2019, 1:21:42 PM10/17/19
to PHP Desktop
The www/public/ method works for me but anyone knows any way to automate this? I mean, not to rewrite every route with www/public/ prefix?....

Sorry for my english hehe :)

deel...@gmail.com

unread,
Dec 6, 2019, 8:34:34 AM12/6/19
to PHP Desktop
Just add prefix in mapWebRoutes method in app/Providers/RouteServiceProvider.php

efs...@gmail.com

unread,
Mar 27, 2020, 11:25:41 AM3/27/20
to PHP Desktop
I can't get this work.

$prefix = \App\Helpers\PHPDesktopRouter::getRoutePrefix();

Route::get("{$prefix}/"function () { return view('layout')->with('content''home'); })->name('/');
Route::get("{$prefix}/home"function () { return view('layout')->with('content''home'); })->name('main');

Route::get("{$prefix}settings"'SettingsController@index')->name('settings');
Route::post("{$prefix}settings"'SettingsController@update')->name('settings');

Route::get("{$prefix}exports"'ExportsController@index')->name('exports');
Route::post("{$prefix}exports"'ExportsController@export')->name('exports');



Error 404: Not Found
File not found

devs...@gmail.com

unread,
Jun 11, 2020, 2:24:35 AM6/11/20
to PHP Desktop
I was also facing this issue but finally i solved it.

You need to update php version of phpdesktop .
Actually they are using php 7.1.3 and in laravel 5.8 and later it require php 7.2.x or 7.3.x or later
and extract it 
now go to php directory in phpDesktop and copy php.ini file and take a backup of php.ini now delete all the files and folder inside php directory of phpDesktop
Now copy all the downloaded files and folder of php and put in php directory of phpDesktop and also php.ini which we already taken a backup.


Reply all
Reply to author
Forward
0 new messages