PHP &
LARAVEL
PHP: Hypertext Preprocessor (or
simply PHP) is a server-side
scripting language designed for
Web development, but also used as
a general-purpose programming
PHP
language. It was originally created
by Rasmus Lerdorf in 1994, the
PHP reference implementation is
now produced by The PHP Group.
PHP originally stood for Personal
Home Page, but it now stands for
the recursive initialism PHP:
Hypertext Preprocessor.
Syntax
PHP
Variable
FUNDAMENTAL
Echo
Datatype
Strings
Constants
Operator
PHP
Control Flow
FUNDAMENTAL
Loop
Function
Array
Create
PHP Array Push
Array Array Search
Array Loop
Array Unset
Constructor
PHP Property
Object Method
Getter & Setter
Extends
PHP Connection
Mysql Query
CRUD
Install
composer global require "laravel/installer"
Create Project
Laravel composer create-project --prefer-dist
laravel/laravel blog
Start Up Config
Generate Key
php artisan keygenerate
Create
php artisan make:migration create_users_table
--create=users
Laravel
Create Table
Schema::create('users', function
Migration (Blueprint $table) {
$table->increments('id');
$table->timestamps();
});
Routing
Route::get('foo', function () {
return 'Hello World';
Laravel });
Create Controller
Basic
php artisan make:controller
PhotoController --resource
Template Inheritance
@yield('content')
Template Extends
Laravel @extends('layouts.app')
@section('title', 'Page Title')
Views
Passing Data From Controller to
View
Migrate
Routing
Laravel Display View
Practice
Display Table Data
CRUD
Project Challenge
Easy : CMS Medium : E-commerce
Manage Post Manage Product
Manage Post Category Manage Sub Product
Manage Transaction
Standard Checkout Process
(add to cart, checkout, payment)
Analyze
List Required Table
Challenge List Required Routing
Tips
List Required Controller & Method
Use Relevant Template
Good Luck Mate !