Author: Admin

  • Eloquent

    Eloquent is an ORM (Object Relational Mapper). An ORM maps an object in your database, like a table row, to an object in PHP code. This is Laravel’s Active Record implementation.Now an important thing to remember the Class is the singular form of the Table name. For example: Now if for example you have a…

    Read More

    //

  • Artisan

    artisan help “php artisan help” doesnt work on it’s own, it displays information an a given command but as mentioned for that you also need to provide the command you want help with. For example: “php artisan help make:model” or “php artisan help migrate” and so on.It displays information on all the different variations of…

    Read More

    //

  • Automatic Blade variables

    Slot/s Component Slot/s are rendered by echoing the variable: “$slot“. We can pass content into the slot by injecting it into the component. Like so: Lets say we have a layout file: “layout.blade.php” Then you also have a views file: “home.blade.php” Now what that does it takes this: “<div><h1>Hello, World</h1></div>” and echo’s it where the…

    Read More

    //