Re: laravel/route/php question?

From: Date: Wed, 12 Feb 2025 09:06:50 +0000
Subject: Re: laravel/route/php question?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-328630@lists.php.net to get a copy of this message
On 11/02/2025 19:20, bruce wrote:
Hey/Hi, I realize that this isn't a specific laravel channel, but -- here's the question. New to laravel, trying to track down how/where a statement in a file within a test laravel works. the test file   resources/views/layout/app.blade.php
    the line..
      <a href="{{ route('properties') }}">PProperties</a>
 which then generates
      <a href="/">PProperties</a>
so in some function/method
       route('properties') ==>   "/"
 or    route:get "properties" gets xferred to "/" but, so far, I can't seem to track down where this might happen, or the flow of the logic. If anyone has any pointers, feel free to fire them to me! thanks The route() helper method is used to generate a URL to a named route. In your case, it's looking for a route called "properties". Do you have that defined in your routes/web.php file?
More information on creating named routes can be found in the Laravel documentation: https://laravel.com/docs/11.x/routing#named-routes Ashley Sheridan Web developer and accessibility advocate https://ashleysheridan.co.uk

« previous php.general (#328630) next »