Laravel Popular Post


Solved - gulp error cannot find module laravel-elixir

If you also find error like "laravel-elixir not found" on gulp then you can install laravel-elixir npm package manually. I also fetch this error when i was new in laravel and working with gulp first time. We can solve laravel-elixir not found error using laravel-elixir nodejs package. So you can run just bellow command and check. First command if you run already then don't require to run. <strong>Command:</strong> <pre class="prettyprint lang-php"> npm install npm install laravel-elixir </pre>

By Hardik Savani | July 22, 2016 | | 2567 Viewer | Category : Laravel
READ MORE

Laravel ajax render view with data example

Sometimes, we use get html view layout from ajax request. At that you have to first render view file and then you need to store view in varibale and then we can return that varibale. In bellow example i render view with pass data you can see how i did: <strong>Example:</strong> <pre class="prettyprint lang-php"> $data = $this->semester->getSemesterName($input); $type = "Subject"; $options = view("home.ajax",compact('data','type'))->render(); <br/> return $options; </pre>

By Hardik Savani | May 6, 2016 | | 2470 Viewer | Category : Laravel
READ MORE

How to create middleware with parameters in Laravel 5?

Laravel is the best framework in PHP todays. Laravel framework provide saveral functionality and you can also find from this site. But now in this post you can learn how to create custom middleware with passing parameters in laravel 5 example and how to use middleware with route parameters in laravel 5. In this example you can learn how to add middlware with check user have access role for this route from scratch in your laravel application. I also added how to create middleware in my previous post, you can see that also. In this example i added middleware for check use have role access for .....

By Hardik Savani | June 8, 2016 | | 2461 Viewer | Category : Laravel
READ MORE

Laravel 5 - user prevent common passwords using laravel-password package

Today, i am going to share with you how to ignore common password to enter by user using "unicodeveloper/laravel-password" package. Using "unicodeveloper/laravel-password" package, we can simply use "dumbpwd" validation rule. As we know, security is a key of website or software, If you are creating new account and you create very familiar or regular password like "123456", "123123", "abcd" etc. So this type of ordinary password can know or gases your password and login in to your account. So we have to use something like package or plugin for prevent this type of common password enter to user.....

By Hardik Savani | April 20, 2017 | | 2293 Viewer | Category : Laravel
READ MORE

Laravel 5 - Grayscale Image Generate Example from scratch

Today, i am going to share with you how to make grayscale image from original in laravel application. Sometimes, we may require to make grayscale image when user upload image. grayscale image looks better if you have an good layout website. in article we will learn how to create grayscale image using intervention package in laravel. intervention package provide a lots of things to do with image like resize, Grayscale, write on image etc. intervention package is also perfect to generate grayscale image. So, let's follow few step to generate grayscale image and upload it to our server. You c.....

By Hardik Savani | May 2, 2017 | | 2291 Viewer | Category : Laravel
READ MORE

Laravel 5 - How to get route parameters in your route middleware?

Sometimes we may require to get route parameters value in our middleware like if you want to check permission etc. You can get easily using request object, that provide route method and you can get it. I also added small example that way you can undestand very well. In this bellow route i have id and userid two route and i want to get value of that parameters in my "check-route-param" middleware so first i have route like: <strong>Example Route:</strong> <pre class="prettyprint lang-php"> Route::group(['middleware' => ['web','check-route-param']], function () { Route::get('{id}/myroute/{.....

By Hardik Savani | May 14, 2016 | | 2250 Viewer | Category : Laravel
READ MORE

How to create blade view file using command line in Laravel?

In this tutorials i gonna share with you Amazing artical, "How to install laravel in your Android Phone". this artical is very helpfull for performe a small tack for laravel on your Android phone without open your PC or laptop.so let's start. i will explain all thins one by one. so please followed all step and you can easely install or run laravel applilcation in your Android Phone. <strong class="step">Step 1 : Install "Termux" Aplication from Google Play Store</strong> Termux is provide all functionality like as terminal, which we are using in our Ubuntu OS. then after you simple open it ap.....

By Hardik Savani | April 4, 2017 | | 2198 Viewer | Category : Laravel
READ MORE

Laravel 5 - "syntax error or access violation 1055 in group by" Solved

Yesterday i was working on my Laravel 5.4 application and when i use group by statement in query builder I found error like as bellow: <br/> <strong> SQLSTATE[42000]: Syntax error or access violation: 1055 'admin.products.name' isn't in GROUP BY (SQL: select `products`.*, SUM(products_stock.stock) from `products` inner join `products_stock` on `products_stock`.`product_id` = `products`.`id` group by `products`.`id`) </strong> I was thinking what will be error and why it comes. i thought maybe it comes from mysql. i just add following query using laravel builder as like bellow: <strong>Laravel.....

By Hardik Savani | February 15, 2017 | | 2122 Viewer | Category : Laravel
READ MORE

How to get file size from URL in Laravel 5?

We sometimes require to get file size from path in laravel, so if you need to get file size from url then no worry and you can get using File facade. File facade provide several function that way we can get size of file or image. In bellow example i just give you path of my images folder inside public folder and one image, that give path as argument of size function: <strong>Example:</strong> <pre class="prettyprint lang-php"> {{ File::size(public_path('images/1461177230.jpg')) }} </pre>

By Hardik Savani | July 18, 2016 | | 2067 Viewer | Category : Laravel
READ MORE

How to get size of directory in MB Laravel 5?

Mostly we require to calculate for uploaded directory size because we can see how much we size allocate in uploaded directory. If you have limited server then you always need to check how much size of data in my folder. You can also get size of directory that way you can also display on your admin panel. Laravel provide File facade. File facade through we can get folder size in kb or mb or gb etc. In bellow example i have <strong class="path">images directory</strong> in public folder. so we can get size for images folder like this way : <strong>Example:</strong> <pre class="prettyprint la.....

By Hardik Savani | July 23, 2016 | | 2060 Viewer | Category : Laravel
READ MORE


    Laravel 5 - Implement Flash Messages with example

    Laravel 5 - Implement Flash Messages with example

    Open Post

    Laravel 5 Autocomplete using Bootstrap Typeahead JS Example with Demo

    Laravel 5 Autocomplete using Bootstrap Typeahead JS Example with Demo

    Open Post

    AngularJS - convert comma separated string to array example

    AngularJS - convert comma separated string to array example

    Open Post

    How to add ckeditor with image upload in Laravel ?

    How to add ckeditor with image upload in Laravel ?

    Open Post

    Paytm payment gateway integration example in Laravel 5

    Paytm payment gateway integration example in Laravel 5

    Open Post

    How to implement lazy loading image with example for your website?

    How to implement lazy loading image with example for your website?

    Open Post