How to build a Blog system with Laravel | Part 2

In the previous tutorial, we created all the migrations files and the corresponding model that respect our UML design. In this tutorial, we’ll only work on models by adding fillable and Eloquent relationships.

The fillable attributes are the fields of the table that can be filled from an array to directly create a new record in our database. Eloquent relationships are defined as methods in our Eloquent model classes that serve as powerful query builders mechanisms.

To have an explanation about Eloquent Relationship, hit the documentation so you will easily the following content.

Post class

BlogCategory class

Users class

Image class

Comment class

I really advise you to read the documentation relating to the Eloquent relationship, it’s a lifesaver concept while working with Laravel. Also, the complete source is available. You can choose to learn from the code itself.

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top
porn by force indian girls fuck photos
kannada auntys sex videos indian local sex videos com
kolkata teen sex telugu xxx .com
gotporn indian men naked
m taxi 69 incent porn
indian awesome sex xnll
gand porn xnxx jabardasti mp3 hindi mp3
home sex malayalam indian sex vid
download indian girl sex video desi xvedios
ndiansex unexpected sex
xvideo plumber kannada real sex
sexy video rap poonam pandey xvideo
softcore 69
shemalexnxx desi choda video