Advertisement
sp_Showrav

Laravel Basic Idea

Jul 26th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.65 KB | None | 0 0
  1. Welcome to the basic idea of **Laravel**
  2. ========================================
  3.  
  4. =>PHP<=
  5.  
  6. => What is PHP?
  7. ===============
  8. PHP: Hypertext Preprocessor.
  9. A server language/scripting language.
  10. Use a local server (xamp, wamp, etc) to run a php code.
  11.  
  12.  
  13.  
  14. => Use of PHP.
  15. ==============
  16. 1.Work with html elements and the actual work done by php.
  17.     so its called the back end language. Suppose we developed a site. If we see the source code in the browser
  18.     we can see only the html code. But we never see the php code thats why its called scripting language.
  19. 2.PHP Interacts With MySQL Databases.
  20. 3.PHP Collects User Information.
  21. 4. (.php) extension used in every php file.
  22.  
  23.  
  24. =>A basic structure of PHP
  25. ==========================
  26.         <?php
  27.            echo "Hi, I'm a PHP script!";
  28.         ?>
  29.        
  30. =>PHP variables
  31. ===============
  32. -> All variables in PHP are denoted with a leading
  33.    dollar   sign ($).
  34.    Rules: https://www.tutorialspoint.com/php/php_variable_types.htm
  35.    
  36.    Example:
  37.    -------
  38.    <?php
  39.     $var = 1;
  40.     $var_1 = 3;
  41.     $sum = $var + $var_1;
  42.     echo $sum;
  43.   ?>
  44.    
  45. -> Different php data types:
  46.         ->Integers
  47.         ->Doubles  
  48.         ->Booleans  
  49.         ->NULL  
  50.         ->Arrays
  51.  
  52. =>PHP constant
  53. ==============
  54. A constant is a name for a simple value. A constant value cannot change during the execution of the script.
  55.  
  56. =>PHP loops:
  57. ===========
  58. for, while, do..while, foreach.
  59.  
  60. =>PHP - GET & POST Methods
  61. ==========================
  62. GET-> when we want to send data by url;
  63. POST-> The POST method transfers information via
  64.        HTTP headers.The POST method does not have any restriction on data size to be sent. Secured.
  65.        
  66.        
  67.  
  68.        
  69. => Object Oriented PHP
  70. ======================
  71. ->Object Oriented Concepts
  72.         ->Class
  73.         ->Object
  74.        
  75.        
  76. ====================>Laravel<=======================
  77.  
  78. => Laravel ?
  79. ============
  80. PHP framework/advance php.
  81.  
  82. => Requirements
  83. ===============
  84. 1. local server
  85. 2. composer
  86. 3. Any version of laravel project.
  87. 4. cmd line use.
  88.  
  89.  
  90. => Installation
  91. ===============
  92. 1. Create a project folder in xamp\htdocs suppose newProject.
  93. 2.Fist install xamp.
  94. 3.Install composer.
  95. 4.Initialize the directory.
  96. 5.In cmd just put->  composer global require "laravel/installer"
  97. 6.Next put-> composer create-project --prefer-dist laravel/laravel projectfolderName
  98. 7. done
  99.  
  100.  
  101.  
  102. => Intro of Laravel Project
  103. ===========================
  104. -> folder or file identity
  105.     =>app => Model/controllers.
  106.     =>database > all migration/table which creat
  107.                  for the database.
  108.     =>public => all style sheets/js files.
  109.     =>resources\view\ => all view or blade files.
  110.     =>routes\web.php => all the route based on controller.
  111.     =>.env => environment.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement