Questions tagged as 'laravel'

1
answer

Error when relating tables in laravel 5.5

Veran I want to do with laravel 3 tables: Plants, User and Comments. The story is that a user can write comments about the plants to ask or answer questions about the plant. Migration of the Plants table: <?php use Illuminate\Support\Fa...
asked by 10.02.2018 / 15:24
2
answers

Problem redirecting laravel

I have a page where I store images in a project folder and the name of the image file I store in the DB. So all right, I can save and delete the images in the folder and at the same time delete the data stored in the database. My problem comes w...
asked by 26.03.2018 / 03:31
1
answer

Error in Laravel DateTime :: __ construct (): Failed to parse time string

Create a virtual host and when entering the URL, sometimes I open the laravel page and others throw me that DateTime error, how can I solve it? I found this: link I do the php artisan key: generate but nothing happens, what follows be...
asked by 12.03.2018 / 03:39
1
answer

send form with ajax in laravel

I have a problem with the ajax that I am using, I need to send those variables but I get an error in the console, I can not find the route and I need to know how to send it by laravel obviously $.ajax({ type: 'POST', url: '{{ur...
asked by 06.07.2018 / 17:54
1
answer

Connect FTP with Lumen

I'm doing an API with the Lumen framework and I would like to upload files of the application to an FTP only that I have not seen any documentation about it and I wanted to know if there is any documentation on how to upload files to an FTP with...
asked by 28.11.2017 / 21:30
1
answer

Get id of a laravel combo

I'm working with LARAVEL I have a foreach that uploads stuff to me from my database in a view. I need to select a subject to send your id to another view ... What he does now is that when selecting different subjects, he loads the same id, an...
asked by 07.11.2017 / 07:07
1
answer

Laravel 5.4: I do not get data from Eloquent relationships

Using Laravel (with MySQL) I'm starting with Eloquent relationships. I try to get the related data but I do not get anything. My configuration is as follows: Migration providers: Schema::create('proveedores', function (Blueprint $table) {...
asked by 02.10.2017 / 03:28
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

Doubt with xml and laravel

Good, I'm new to the framework, I have a question about an XML that I'm doing in a project that is laravel, the detail is that I'm doing it entirely with php but when I want to visualize what I've done, I can not . here I leave my code <...
asked by 25.08.2017 / 00:20
1
answer

Check login in Laravel 5.7 from external script

I have an application in Laravel and I need to check, from an external script, if a user is logged in or not and what it is. For this I use the following lines of code, to load Laravel: require_once __DIR__.'/../../../vendor/autoload.php'; $a...
asked by 17.09.2018 / 10:49