Questions tagged as 'laravel'

1
answer

You can not find ServiceWorker

I have a project with Laravel, Vuejs and I want it to be PWA, I already have the service-worker, the manifest.json and I made the change to package.json, But I have a doubt, for now this localhost: 8000 and tells me ServiceWorker registration...
asked by 03.04.2018 / 09:02
1
answer

Create a record if it does not exist in the table or update data if the record exists

I need to save the data in a table if they do not already exist or update them if they exist. I have this code so far that you only create them in the table, the table is called Coin.php $client = new Client([ 'base_uri' => 'htt...
asked by 31.03.2018 / 23:47
2
answers

problem loading 2 select with data in Laravel 5.6.7?

I have a problem filling out two different selections within the same form in laravel 5.6.7. vista: registro.blade.php <div class="form-group"> {{ Form::label('empresa','Empresa:',['class' => 'control-label ']) }...
asked by 08.03.2018 / 21:18
2
answers

How to close with logout?

How can I do so that when logging out with route (logout) and the user presses the back button, it is not returned and redirected to the login? Note: I am working with oauth in laravel 5.5     
asked by 22.03.2018 / 17:35
1
answer

Variable assigned within the post in axios travel empty

When I send the form data, the controller recognizes them empty. public function store(Request $request) { // $this->validate($request,[ 'PERS_varDNI' => 'required', 'PERS_varApPaterno' =>...
asked by 23.03.2018 / 15:09
1
answer

Problem with my route Route [invoices.obtainproducts] not defined

Generate my Controllers, models and views with infyom and everything perfect but when I create a function and I call it with a route in a view it tells me it is not defined I have in my file web.php the following line Route::r...
asked by 27.02.2018 / 21:39
1
answer

Insert in 2 different laravel tables?

I want to make an insert in 2 different tables of the database. I have the holiday table that stores the holidays and I have a calendar, in which calendar events must be saved to show it every time a vacation is approved, then I have: Contro...
asked by 20.02.2018 / 13:02
1
answer

Laravel ORM Consulting relationships

I have three tables and models related to each other and I need to consult the properties whose Environment.Name = 'Dormitorios' and PropertyEnvironment.Value = 2 : App\Property : id address etc Methods:...
asked by 01.03.2018 / 15:28
1
answer

Routes and Href in the sidebar menu

I have the following problem, I get a question mark "?" instead of "/" in my link of the "security (security)" option in the sidebar or url menu URL Sidebar menu Routes Controller Router list How can I solve that...
asked by 19.03.2018 / 18:15
1
answer

Return, does not work in scheduled task?

I have a driver in Laravel, which is processed every so often by a task scheduled from the server. This driver does a redirect: return redirect('/control_fich/'.$id_user.'/'.$date_utc); To another controller that continues processing w...
asked by 19.03.2018 / 09:35