Questions tagged [laravel-annotations]

Related to Laravel 5 Route Annotations.

Related to Laravel 5 Route Annotations.

In short, annotations are notes about your code that live in the DocBlock. But PHP has the ability to read and parse these notes, and so you can use them to give your code directions. Opinions on them are varied.

This functionality was initially added in development version of Laravel 5, but it was finally removed from final release. At the moment this functionality is developed as separate package by Laravel Collective.

Resources:

2 questions
0
votes
0 answers

laravel 5 urlgenerator with Form::open route with Route Annotations

I'm using Laravel 5 with Route Annotations. (The app\Http\route.php will be automaticaly deleted). For video about Route Annotations, you may have a look at https://www.youtube.com/watch?v=sOvgw40Dg4A I build a ContactController.php with php…
0
votes
1 answer

Routes using annotations - passing custom variables and translation

Using routes.php it's quite easy to create paths for different languages using prefixes, for example we can create for about page routes about and pl/o-nas urls to the same route using: if (\Request::segment(1) =='pl') { $prefix ='pl'; …