In this tutorial i am going to explain How to Integrate Payumoney Payment Gateway in Laravel 5. Most of thing are already in PayU documentation i am just going to explain it in step so you will easily integrate without reading whole document. In this example i have all value write static in input box. […]
If you want to retrieve a collection containing the values of a single column, you may use the pluck method. Let’s create a pluck method in laravel 5 You may also specify a custom key column for the returned Collection.
The query builder can also select existing records using the select method, you can specify a custom select clause for the query.
We can select the record using the DB facade with execute a select statement (select the record from the database), you may execute a query using named bindings. Let’s create a select Statement in laravel 5
So you’re using laravel’s query builder to get all orders that belong to a specific result using condition., but you want to allow the user to filter the results. Now you can use model in your controllers. Laravel query builder in if statement.
Let see How to insert data in to database using Model in Laravel. You may also generate Eloquent models using the make:model command: php artisan make:model Here is sample code that you can use. Model in your controllers. Insert data to database table using model.
We can delete the record using the DB facade with execute a delete statement (delete the record from the database). Like update, the number of rows affected by the statement will be returned. Let’s create a delete Statement in laravel 5
In below we are making a fully code to validate a form in laravel using controller. Making view files which contain form and form for fields and validation error message showing code. In controller we are validating all input and applying validation rules and custom error messages and sending back to view with validation error […]
One such cool feature us using raw queries in laravel. These expressions will be injected into the query as strings but this is really helpful when you want to use raw expressions like aggregate functions. The queries can be executed using DB::Raw method. Let’s create a DB::Raw method in laravel 5
Ajax makes your application more flexible, you don’t need to reload or refresh the whole body for small changes, you can made changes in any part without loading page. Generate Pagination Route View Call Html Code Jquery Call Call to routes Route to Controller Now finally call pagination.