Laravel 5 comment block - laravel-5

I found before few months some video on Laracast which explain comment blocks can replace some functionality in Laravel 5. I think it was different way of defining properties or something like that, it was new feature in Laravel 5, but I can't find now that video, anyone know about it?

I think you saw a video about annotations in Laravel 5. Route annotations and Event annotations. They are in laracasts.com, but this worked for Laravel 5 alpha version. I don't think it's useful now.

Related

Enable Remember me option in laravel fortify

So, I've just built my website authentication system using laravel fortify, however, I'm finding a problem on how to implement the remember me option. I could use some help. if there's a built-in method in fortify it would be even better.
I am using laravel 8 and fortify 1.6
According to this issue https://github.com/laravel/fortify/issues/17
Taylor suggests that you shouldn't use the Auth::attempt method in Fortify::authenticateUsing method as it will essentially be logging in twice.
You should use Auth::validate.
Btw, if you have an input (checkbox) named "remember" it will still be passed along.
Hope this helps someone, because I spent hours trying to get to the bottom of how to use remember with Fortify::authenticateUsing.
So, after surfing in the whole fortify assets xD, I found that it accepts a second parameter in the attempt method which is rememberMe option as a "remember" post data name. So u just have to set the remember me checkbox name to "remember" and its gonna work like magic.

laravel site suggests for those who has experience of wordpress development

I have more than 3 years of experience in wordpress and php.
Now I want to getting started with laravel.
Can anyone suggest me best links which explains straight forward laravel with latest version.
https://laracasts.com/series/laravel-from-scratch-2017
This Series is totally Free to beginner
The best place to start with Laravel is the documentation, in combination with this laracasts series.
Laracasts calls itself a Netflix for Your Career! and has great tutorials to learn the simple things about Laravel, but also the more in depth parts like unit tests.

What is the correct approach to learn Codeigniter?

In the last 3 months, i have learnt html, css, js and php and now i'm trying to learn Framework Codeigniter. My teacher gave me a rough idea abt MVC and asked me to download a project made on codeigniter from internet and edit it.
I downloaded a login form project and tried to read it. But i'm still kind of confused how everything works. i hv 2 questions:
What is the correct approach to learn codeigniter?
In how many days one can learn codeigniter? (i practice around 6-7 hrs a day)
The best way to learn codeigniter is to read the manual of codeigniter
Because, codeigniter framework is so much popular for their well formatted and clean documentation.
Or you can check this for beginner level tutorial
Or if you want to learn codeigniter by doing practical projects then you can follow this link
I learned CI over a weekend using this technique.
Start with simply setting up a 2 page site.
Home and About Us.
Pass simple string variables from the controllers to the views.
Next, bring a model into it.
Make a method in your model that returns some plain text, to the controller and finally to the model.
Next, make the model actually make a request to your database and return the result to the constructor then view.
After that try these:
write a helper function
Try making a basic route
Log a debugging message
upload a file from a form using the upload library
That's a good grounding in CI
Keep in mind Codeigniter is no longer in development also.
If your keen on sticking with PHP, you might want to check out the similar active project called "Laravel" after getting the hang of CIs very simple MVC structure.
Good luck!
the common way is read their manual and follow the guide, the another approach is search youtube for codeigniter turial, there are many good tutorial out there and easy to follow for example here is my result in the first place for keyword "codeigniter tutorial"
https://www.youtube.com/watch?v=BP9NRZXOvIw&list=PLIQyGVrcLTeXsq37O7IBGaUwu6xEwqBWV&index=1

Laravel 4 Blade templates documentation

I'm new to Laravel 4. I don't seem to find adequate documentation on the Blade templating system.
I see some examples at http://laravel.com/docs/templates with no explanation.
Another example at Laravel 4 Controller Templating / Blade - Correct method?
Where are #section, #yield, #show, etc defined and documented? Where is the Blade templating system actually explained?
Or is it so new, or so "intuitive", that it needs no explanation? Or I could use another templating system that is better documented?
I would say Blade is so easy that it doesn’t need documentation.
Follow this link great tutorial by Jeffrey Way which will take you through everything you need to know.
https://tutsplus.com/lesson/templating-changes/
I am totally convinced that the original documentation about has many areas of opportunity. Anyway, Dayle Rees has done an excellent job through the pages of Code Bright. The Blade section of the book has some great examples that perfectly complement the original documentation. I find it strange that wasn't previously mentioned. You should give it a look.
Regards!
The documentation for Blade isn't in the laravel.com docs. No, they tucked it away in their readthedocs.io account:
https://laravel-guide.readthedocs.io/en/latest/blade/

Blade templating engine syntax issues on Laravel 4

I'm currently starting a project on the beta version of Laravel 4
When i try to use the templating engine some tags work and some doesn't. e.g:
#layout('layouts.master')
#section('container')
<h1>About US</h1>
#endsection
is displayed as:
#layout('layouts.master')
About US
#endsection
which means that the #section tag is parsed, but the other are referred to as plain text.
also if i change the #layout to #include, it does include the template.
Has anyone run into a similar issue? Have there been any syntax changes I'm unaware of?
#layout has been changed to #extends in Laravel 4. Also, #endsection has been changed to #stop
The source of the problem is that a lot of tutorials online (youtube and blogs) still use the #layout and #endsection. And these tutorials usually claim to be Laravel4 tutorials as well.
So a lot of people fall in to this little trap starting their first Laravel4 app.
Tip: I use this guy's cheat sheet page while developing (propers to Jesse O'Brien). It's how I found out myself I was using outdated blade tags.
If you come across problems with Laravel or in case you don't know if Laravel has built in a functionality you'd need, allways check out the docs for the Laravel version you use.
The online documentation of the current released version (4 at the time of writing): http://laravel.com/docs/
and the Laravel API to dive into the source online with explanation of e.g. function arguments: http://laravel.com/api/

Resources