Questions tagged as 'laravel'

1
answer

Join in laravel

I have my in my controller: $habitaciones = DB::table('habitaciones') ->join('tipo_habitaciones', 'habitaciones.id_tipo', '=', 'tipo_habitaciones.id') ->select('habitaciones.*', 'habitaciones.id', 'habitaciones.hab_numero...
asked by 01.03.2018 / 23:52
3
answers

Inquiry about Laravel and Eloquent

I have a form with two select and two date fields, when I click on the button it makes me a query with the value of the two select and "whereBetween" between the dates, is there any way of doing that I only consult according to the select in tho...
asked by 14.02.2018 / 13:18
1
answer

Can I use several requests in a laravel 5.3 mutators?

I try to save two input in database and I was thinking about doing it with mutators, the fact is that if I modify a field I only manage that value because the $ value that I receive is the one that sends the request, but I need to use something...
asked by 06.04.2018 / 16:29
3
answers

Laravel 5.4 localhost: 8000 does not work

At the moment of putting php artisan serve everything is fine, until I address my localhost:8000 and it shows me the following: Warning: require_once(C:\xampp\htdocs\EEPAT/public/index.php): failed to open stream: No such file o...
asked by 04.07.2017 / 23:49
3
answers

Routes en laravel 5.5

Dear I'm learning laravel 5.5 and I'm trying routes, in routes / web add the following route Route::get('/usuarios',function (){ return 'usuarios para agregar'; }); so that when the link put link I returned the string but ins...
asked by 02.02.2018 / 20:12
2
answers

Create new tables in laravel

I am new to laravel and I have a problem I have already created a database with 3 tables with filled data and when I create a new migration I want to add the new table. I was using php artisan migrate:refresh but that updates me and...
asked by 31.01.2017 / 20:57
2
answers

change the default home laravel

Someone knows how to change the welcome.balde.php that has the default laravel and change it to home.blade.php . I tried configuring it in the reoutes.php but I still get the welcome, do you have to make a configuration to run?...
asked by 11.04.2017 / 18:24
1
answer

Why is the download of an excel file forced?

I am trying to show an excel file, but this one instead of showing what it does is download it at once. Thus I try to show the file public function ari(){ $file = storage_path() . '\app\excel\formulario ORIGINAL ARI.xlsx'; $heade...
asked by 24.09.2018 / 18:41
1
answer

How to pass parameters from a href to a get route in laravel 4.2?

Greetings community I'm working with this route in laravel Route::get('/{tienda}/{ruta}', array('before' => 'validar_tienda', function($tienda, $ruta) {...} to invoke it from the browser bar I have no major problem with the dynamic pa...
asked by 09.11.2016 / 21:44
1
answer

Vue data iteration

I'm iterating some data with a computed property in a v-for use axios to obtain data from an external api you will see the code <table class="table"> <thead>...
asked by 31.12.2018 / 02:31