PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, February 19, 2022

[FIXED] When route url is same as the package name, it does not work

 February 19, 2022     composer-php, laravel, package, routes     No comments   

Issue

I have a lot of URLs in my package routes, but one of them does not seem to work.

When the route is as follows:

Route::get('package_name', 'DashboardController@dashboard');

It does not work, but when it's something as below:

Route::get('something', 'DashboardController@dashboard');

Then it works with no problem.


Solution

The reason why I had this problem because I was publishing a folder into the public directory with the same name as the package name.



Answered By - Agil
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing