In this post, we will create the edit page, we will also give the possibility to delete posts to its creators and, finally, we will explain and use the soft deletes.
Continue reading “Laravel 5.4 #8 : Edit, delete and soft deletes”
Laravel 5.4 #7 : Middlewares and relationships with Eloquent ORM
Sometimes, you don’t want that certain users can access to certain parts of the web, either because of their role, because they aren’t the creators or for whatever reason. Laravel has a feature that allows us to do this very easily, the so-called Middlewares. This is what we are going to try today, together with database field relationships with Eloquent ORM. So, we will learn to assign a post to its creator and then how to access that data.
Continue reading “Laravel 5.4 #7 : Middlewares and relationships with Eloquent ORM”
Laravel 5.4 #6 : User authentication
Today we will learn how to create a login and registration form and we will see that Laravel creates it automatically with only one command. We will also see how to customize the form by adding a new field and also verify that only active users can login.
Laravel 5.4 #5 : Going deeper into Blade
In this post, we will go deeper into Blade. We are going to create a layout and extend it from the different templates, also we are going to use includes to include from a view the errors and the post submission form. Also, we are going to use the conditionals of Blade to display a message if there aren’t any post.
Laravel 5.4 #4 : Insert data from a form and validate it
In this post, we will try to insert data from a form through the POST method and then validate if this data is correct.
Continue reading “Laravel 5.4 #4 : Insert data from a form and validate it”
Laravel 5.4 #3 : Controllers, views, models and migrations
In this post, what we are going to do is connect Laravel to the database, create a model and use it and show the query results in the views.
Continue reading “Laravel 5.4 #3 : Controllers, views, models and migrations”