Академический Документы
Профессиональный Документы
Культура Документы
About Me
Edi Santoso
➔ PHP Modern
What's new from the PHP programming
language?
➔ Modern Framework
Why are other people so fast and
happy to make a website?
➔ Git basic
Modern PHP Development
- Built in server
- Namespace
- Command Line Interface (CLI)
Pro Tip: - Composer
All about the best
practices for PHP
programming, you can
see in PHP the Right
Way.
PHP built in server
Namespace
Coding Style Guide
- PSR-1
- PSR-2
- PSR-4
- Symfony Coding Standards
Modern Framework
- Laravel
- Symfony
- Yii2
- Zend Framework
- Phalcon
Laravel PHP Framework.
The PHP Framework For Web Artisans
2. What you'll learn in this chapter
➔ Installation
➔ Artisan Console
➔ Routing
➔ Configuration
➔ Maintenance mode
Installation
Folder permissions for Linux users
Artisan Console
Routing
Routing
Environment variable type
Determining current environment
Accessing configuration value
Maintenance mode
Pro Tip:
Make folder called
Repositories to drop all
your code folder
Git
Git convention messages
Git flow
3. What you'll learn in this chapter
➔ Controllers
◆ Resource controllers
➔ Views
◆ Blade templating
◆ Partial page
Resource Controllers
Resource Controllers
Resource Controllers
Resource Controllers
API Resource
Method Injection
Passing data to view
Passing data to view
Defining layout
Extending the layout
Loading & render assets
Calling another page on views
4. What you'll learn in this chapter
➔ Model
◆ Migrations table
◆ Table seeder
◆ Model Factories
Generating Model
Model Convention
Model attributes - Table name
Model attributes - Primary keys
Model attributes - Incrementing
Model attributes - Timestamps
Model attributes - Date format
Model attributes - Custom columns
Model attributes - Default values
Model attributes - Custom connection
Problem - Specified key was too long error
Solving
5. What you'll learn in this chapter
➔ Migrations
◆ Generating migration
◆ Migration structure
◆ Migration commands
◆ Modifying columns
Migration - generating migrations
Migration - Structure
Migration - Running migration
Pro Tip:
Please see all Available
Column Types
https://laravel.com/docs/
5.8/migrations#columns
➔ Seeders
◆ Generating seeder
◆ Seeder Structure
◆ Model Factory
◆ Running Seeder
Seeder - Running seeder
Seeder - Structure
Seeder - Using Model factory
Pro Tip:
You can generate data
using Faker generator
https://github.com/fzanin
otto/Faker
➔ Forms
◆ Folders Structure