100% found this document useful (1 vote)
563 views15 pages

PHP Laravel

This document provides an overview of PHP and the Laravel framework. PHP is introduced as a server-side scripting language designed for web development. Laravel is then discussed as a PHP web application framework, including how to install it, create projects and basic features like routing, controllers, migrations and views. The document concludes with some project challenge ideas for a CMS or e-commerce site to practice core Laravel concepts.

Uploaded by

agung
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
563 views15 pages

PHP Laravel

This document provides an overview of PHP and the Laravel framework. PHP is introduced as a server-side scripting language designed for web development. Laravel is then discussed as a PHP web application framework, including how to install it, create projects and basic features like routing, controllers, migrations and views. The document concludes with some project challenge ideas for a CMS or e-commerce site to practice core Laravel concepts.

Uploaded by

agung
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

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 !

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy