Laravel-5 Framework Training @ Webs Jyoti Laravel-5 Framework Training @ Webs Jyoti : Laravel is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller (MVC) architectural pattern. Duration : 40 hrs for training related enquiry call us : 8802000175 Course Content Setup & Installation Basic Routing Basic Routing Route Parameters Responses Views Redirects Custom Responses Middleware Defining Middleware Registering Middleware Controllers Basic Controllers Controller Middleware Implicit Controllers Blade Templates Creating Templates PHP Output Control Structures Templates Template Inheritance Advance Routing Named Routes Secure Routes Parameter Constraints Route Prefixing Domain Routing URL Generation The Current URL Generating Framework URLS Asset URLs Generation Shortcuts Request Data Retrieval Old Input Upload Files Cookies Forms Forms Fields Buttons Security Basic Database Usage Configuration Read/Write Connections Running Queries Database Transaction Accessing Connections Query Builder Introduction Selects Join DML Queries Eloquent ORM Creating new models Reading Existing Models Updating Existing Models Deleting Existing Models Authentication Deploying and integrating third-party services into application
Data Sending Ways in PHP
There are some certain ways to send your information or data to the PHP page- Using Form Methods – Get & Post Using Cookies & Session Using Query String / URL Rewriting Using Hidden form fieldForm MethodsThe GET Method: The GET method sends information separated by the ? Operator.Example: http://www.xyz.com/home.html?city=Gurgaon Please note that the GET method is restricted to send upto 1024 characters (1024 bytes) only. You should not use GET method if you have password or other confidential information to be proceeding over the server. GET can’t be used to send binary data, like images or word documents, to the server. The PHP provides $_GET associative array or super global variable to access the data sent using GET method. The POST Method The POST method transfers information via HTTP headers. The POST method does not have any restriction on data size to be sent. So it can be used to send files, images as well as binary data as well. The PHP provides $_POST super global variable or associative array to access data sent using POST method. PHP Page: thanks.php <?php echo $_POST[‘email]; echo $_POST[‘pass]; ?> Here we have print the same value received through email and password field respectively. We can make it little advanced by taking above posted values to the variables. The advantage of using variable will be like we can use some validation and sanitizing data before preceding it to the database. So the above code can be modified something like- <?php // collect values in the variables separately $email= $_POST[‘email]; $password= $_POST[‘pass]; // you may use some validations like if($email==”” || $password==””) echo “Input required”; else echo “Welcome “.$email . “ Your password is “.$password; ?>