Questions tagged as 'laravel-5'

1
answer

Upload file with bootstrap input file in laravel 5

I'm uploading a file using the bootstrap input file plugin which I succeed in uploading in what I submit makes it difficult to return the path to the plugin to order or delete them in the documentation I have 2 methods that are initialPrevie...
asked by 02.11.2017 / 01:03
1
answer

Two applications on the same server and the connections to BD are crossed

I have two applications on a single server, APP1 and APP2, each one with its own database, from one moment to another I enter APP2 and I see the information of the APP1 Database, they have different app_key, I put a different driver cache, chang...
asked by 04.09.2017 / 16:29
1
answer

Error requesting the refresh_token when integrating the Google Drive API with Laravel

+4 days ago I implemented the registration and login through Google in my Laravel application. When the user does not have an account then it is created, but when it is already registered what it does is allow access. public function handle...
asked by 09.09.2018 / 05:05
1
answer

Laravel update status of records

Good I need to automatically update the status of my budget to "Due" when the expiration date has already passed my budget table: id fecha_emision status total fecha_expiracion cod_us...
asked by 03.07.2017 / 01:47
1
answer

NotFoundHttpException in RouteCollection.php line 161

Greetings, I'm working on laravel 5.3 and none of my routes work, the only one that works is the root path '/' , I do not understand why. web.php <?php Route::get('/',function(){ return view("certificado.index"); }); /*Route:...
asked by 23.09.2017 / 19:41
4
answers

Laravel Take PDF of a record not whole table

I have a table that contains the records in the following way and I want the data it contains to be printed in a PDF from registration to registration, not to print all the records, that is why a button is generated in the table corresponding to...
asked by 21.09.2017 / 12:44
1
answer

laravel 5.6 related models to related models

I have in the model Finca.php public function piscinas(){ return $this->hasMany(Piscina::class)->select('id' , 'finca_id', 'area' , 'name'); } And in the Piscina.php model public function finca(){ return $this->belong...
asked by 14.06.2018 / 00:48
1
answer

Laravel mix 5.4 versioning

Following Laravel's documentation, he says that it is unnecessary to keep the css and js in development, which I think is correct. Then I did the following, I have in webpack.mix.js: mix.js('resources/assets/js/app.js', 'public/js')...
asked by 24.07.2017 / 15:28
1
answer

Problems with a view, with create () and store () methods

I have a Controller to add an "Annotation" to a student, which receives "student_id", "id_asignatura" and "id_profesor", but I have problems in the view, since it only shows me the "id" in the fields and even though I change parameters it does n...
asked by 08.03.2017 / 15:17
1
answer

concatenate names laravel guards

I receive the name of the logged in user with the following code: {{ Auth::guard('profesor')->user()->nombre }} I want to concatenate with the last name, how can I do it?     
asked by 23.06.2017 / 05:42