Laravel Dynamic Breadcrumb

This worked for me, tried in Laravel 5.4.* Requirement for this code to work flawlessly: All URL’s should have hierarchy pattern in your routes file Below code will create crumb for each path – <a href=”/”>Home</a> > <?php $link = “” ?> @for($i = 1; $i <= count(Request::segments()); $i++) @if($i < count(Request::segments()) & $i > […]

Read More

Please provide a valid cache path – Laravel Error

Laravel often throw this error due to it cannot find a storage cache folder, You need to rebuild the storage folders, they are in your .gitignore file so wont be copied when you clone a project (as they are never pushed to the repo).   Try the following: create these folders under storage/framework: sessions views cache Now […]

Read More

How to retrieve value from elements in array using jQuery?

I have multiple input fields like so: <input type=”text” name=”card[]”> <input type=”text” name=”card[]”> <input type=”text” name=”card[]”> Users can add or remove these fields as required, therefore the name of the fields is an array. To get length of the array, this works fine: var n = $(“input[name^= ‘card’]”).length; How can I read value from the […]

Read More