Skip to content
Advertisement

Tag: laravel

List all registered variables inside a Laravel view

I am using Laravel 5. I would like to know which are all variables passed to a view inside the view itself. Since all variables are in the view scope I thought I could use the generic PHP function: get_defined_vars(); http://php.net/manual/en/function.get-defined-vars.php Something like this: But I would like to know if there is a better way (something like View::getData()) Note:

Laravel connect to a SQL Server 2008 named instance

I am trying to connect an SQL server from an Ubuntu machine, everythings works great except for named instances: this works this doesn’t I always end up with this error: I have tried every possible combination: host INSTANCE host / INSTANCE host \ INSTANCE Can someone help me ? Edit: Because I have also tried without instance name (as

How to get file URL using Storage facade in laravel 5?

I’ve been experimenting using the new Flysystem integration with Laravel 5. I am storing ‘localised’ paths to the DB, and getting the Storage facade to complete the path. For example I store screenshots/1.jpg and using or I can retrieve the same file on different disks. get retrieves the file contents, but I am hoping to use it in my views

What does isDirty() mean in Laravel?

First of all, I am not familiar with Laravel so much (or with the term “dirty” for that matter). I stumbled upon this line of code – And I couldn’t understand what that means exactly. I tried to find out on the internet but the Laravel site only says this “Determine if a given attribute is dirty” which doesn’t really

Is there a validation rule for “not present”?

I need to check if the key is not set in the array using Laravel validator. That would be the complete opposite of the “required” validation rule. Basically the array will be passed to update method if it passes the validation and I want to make sure one column will not be updated. Is there a way to check if

Laravel 5 input old is empty

My routes is here Controller And View The {{old()}} function return empty value. EDIT I took Answer Your problem looks like you are not actually submitting the username in the first place: There is no ‘submit’ button inside the form. If you submit outside the form – then the username will not be included. Add the submit button inside your

Advertisement