PHP & Laravel
Server-side code and web applications.
PHP & Laravelbeginner5 min read
PHP Variables and echo
PHP variables start with a dollar sign, and echo prints text into the page the server sends back.
PHP & Laravelbeginner7 min read
Laravel Routes and Controllers
Routes connect a URL to the code that answers it. Start with a closure in routes/web.php, then move the code into a controller as your app grows.
PHP & Laravelbeginner6 min read
Laravel Blade Views
Blade is Laravel's template language. A controller passes data to a view, and the view turns it into HTML with {{ }}, @if and @foreach.
PHP & Laravelintermediate8 min read
Eloquent Models and Migrations
Migrations create your database tables in code, and Eloquent models let you read and write rows as PHP objects instead of writing SQL by hand.
PHP & Laravelintermediate8 min read
Building a JSON API
An API sends data instead of pages, so web and mobile apps can use it. Laravel turns models into JSON for you and validates what clients send.