Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Welcome to the basic idea of **Laravel**
- ========================================
- =>PHP<=
- => What is PHP?
- ===============
- PHP: Hypertext Preprocessor.
- A server language/scripting language.
- Use a local server (xamp, wamp, etc) to run a php code.
- => Use of PHP.
- ==============
- 1.Work with html elements and the actual work done by php.
- so its called the back end language. Suppose we developed a site. If we see the source code in the browser
- we can see only the html code. But we never see the php code thats why its called scripting language.
- 2.PHP Interacts With MySQL Databases.
- 3.PHP Collects User Information.
- 4. (.php) extension used in every php file.
- =>A basic structure of PHP
- ==========================
- <?php
- echo "Hi, I'm a PHP script!";
- ?>
- =>PHP variables
- ===============
- -> All variables in PHP are denoted with a leading
- dollar sign ($).
- Rules: https://www.tutorialspoint.com/php/php_variable_types.htm
- Example:
- -------
- <?php
- $var = 1;
- $var_1 = 3;
- $sum = $var + $var_1;
- echo $sum;
- ?>
- -> Different php data types:
- ->Integers
- ->Doubles
- ->Booleans
- ->NULL
- ->Arrays
- =>PHP constant
- ==============
- A constant is a name for a simple value. A constant value cannot change during the execution of the script.
- =>PHP loops:
- ===========
- for, while, do..while, foreach.
- =>PHP - GET & POST Methods
- ==========================
- GET-> when we want to send data by url;
- POST-> The POST method transfers information via
- HTTP headers.The POST method does not have any restriction on data size to be sent. Secured.
- => Object Oriented PHP
- ======================
- ->Object Oriented Concepts
- ->Class
- ->Object
- ====================>Laravel<=======================
- => Laravel ?
- ============
- PHP framework/advance php.
- => Requirements
- ===============
- 1. local server
- 2. composer
- 3. Any version of laravel project.
- 4. cmd line use.
- => Installation
- ===============
- 1. Create a project folder in xamp\htdocs suppose newProject.
- 2.Fist install xamp.
- 3.Install composer.
- 4.Initialize the directory.
- 5.In cmd just put-> composer global require "laravel/installer"
- 6.Next put-> composer create-project --prefer-dist laravel/laravel projectfolderName
- 7. done
- => Intro of Laravel Project
- ===========================
- -> folder or file identity
- =>app => Model/controllers.
- =>database > all migration/table which creat
- for the database.
- =>public => all style sheets/js files.
- =>resources\view\ => all view or blade files.
- =>routes\web.php => all the route based on controller.
- =>.env => environment.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement