Questions tagged as 'laravel-5'

1
answer

Extract and save data from several related tables in Laravel

I am developing an enrollment form in Laravel 5.4 , as I have created five tables that have a one-to-many relationship: The main table tblFicha has a one to many relationship with the tables: tblDiocesis , tblRegionales -...
asked by 12.03.2017 / 22:49
1
answer

Login Web middleware and Auth Laravel 5.4 [closed]

I want to make a login for administrators, but when I log in, it returns to login. In routeServiceProvider defined: protected function mapAdminRoutes() { Route::middleware('web') ->namespace($this->admin)...
asked by 23.03.2017 / 16:20
2
answers

Fields in a form that are not completed are saved as NULL in the database or ignored in the query

I have a form with different inputs, of which the vast majority are not necessary to fill (and some of these are inputs that are related to other tables), my question is, when these inputs are empty, how do I do that are not added in the insert...
asked by 21.02.2017 / 15:01
1
answer

I do not recognize the metoo authenticate Laravel 5.4

Using the latest version I get this little problem, in the documentation says that you have to add this method to the controller to authenticate (This in the Login Controller) public function authenticate() { if (Auth::attempt(['email' =&g...
asked by 03.04.2017 / 00:08
1
answer

Query in controller from ID with jquery

I am trying to extract data from a table from an ID and display it with a datatable. By jquery, I have the following function: var info = function(tbody, table){ $(tbody).on("click","a[id=ButtonMas]", function(){ if(table.row(this)....
asked by 11.06.2017 / 23:50
1
answer

Problems calling an executable file inside a driver in laravel

I'm trying to call an executable .exe (a location is added in the PATH of WINDOWS ) within a controller in Laravel using the methods escapeshellarg and exec of the next Form: $escaped_cmd = escap...
asked by 12.06.2017 / 02:13
1
answer

send data null radio button, laravel

I'm new to this from laravel, and I have a problem sending data with radio buttons, sending them as null. ... controller.php public function create() { $salas=DB::table('sala')->get(); return view ('equipos...
asked by 30.12.2016 / 12:06
1
answer

Socialite with facebook error when logging in after registering

I was using Socialite for Laravel and I always get an error after trying to log in the newly registered user. If I update the page and I want to log it, it works perfectly. But it fails to register and then log in automatically. User.ph...
asked by 19.11.2016 / 21:16
1
answer

How to create login for different types of users in laravel 5.3

Hello, I have a question, I am working on an intranet system for a school in which I have: As you can see I have several types of users and each one has its model and controller with its methods (index, create, view, delete, etc). My qu...
asked by 07.11.2016 / 17:44
3
answers

Bring a value of a model to my view laravel

I am sending from my controller name,app,tlf,cel,fechadeingreso all this goes in my variable $clients . In my view it shows well, now I want to calculate the time that has elapsed since the date that client was entered, for this I c...
asked by 18.10.2016 / 16:40