Questions tagged as 'laravel'

2
answers

problem when making a query in laravel

I make this query: public static function searchYear($year) { return DB:: table('contract_works') ->select(DB::raw('Year(dateFailure) as dt')) ->where('dt',$year) ->orderBy('dt','asc') ->get(); } but it tells...
asked by 04.05.2016 / 17:17
2
answers

Show name of relationship Laravel 5.1

How can I show the name of the client with whom it is related? Migration projects Schema::create('projects', function (Blueprint $table) { $table->increments('id'); $table->string('nombre', 60); $...
asked by 01.05.2016 / 05:41
2
answers

Argument 1 passed to Illuminate \ Auth \ EloquentUserProvider :: validateCredentials () LARAVEL 5.2

A few days with this error and I do not know what is due, I was trying to make a login, with the make: auth of Laravel, the connection to the database is good, the fields exist and the routes work correctly , but when authenticating, this error...
asked by 26.04.2016 / 12:04
1
answer

Check between two date with Eloquent time

Hello, I need to make a query between two dates with hours $data = Modelo::whereBetween('created_at', ['2018/11/10 12:00', '2018/11/11 10:30']) ->get(); But when making this query it brings all the results between the dates without takin...
asked by 27.11.2018 / 19:35
2
answers

How to save an image from vue

Hi, I'm uploading a photo from Vue but I put it in base64 then try to decode it to deal with the image. that's how I have my driver public function Update (ValidatePersonalRequest $request) { if($request->foto) {...
asked by 18.11.2018 / 20:16
1
answer

Convert a JOIN to Laravel

I am in a small problem, I managed to make a query in MySQL to obtain data from three different tables, with these data I want to print them on my WEB page, I have researched and it turns out that I must use JSON and Ajax to be able to store my...
asked by 06.11.2018 / 23:37
1
answer

Customize Login routes in Laravel 5.3

Hi, I have a problem with Login routing with the php artisan make: auth method that generates everything you need From now on it's quite difficult for me to join the project I was doing to this login and its views. But it does not let me change...
asked by 09.09.2016 / 05:31
1
answer

Problem with cron and command laravel 5.6

I am scheduling mailings by command in laravel. When I include the execution in my cron file, it is executed in the frequency indicated in the cron and not in the indicated schedule of my command En el cron::::: * * * * * php /var/www/t...
asked by 29.08.2018 / 17:20
1
answer

no-referrer-when-downgrade Laravel 5.5

This time I come for your help on another topic. I'm doing a form in Laravel 5.5, to enter a list of servers in a table, This table has many foreign keys. This is the structure of the table: <?php $title = isset($item) ? $item->nam...
asked by 05.09.2018 / 22:02
1
answer

Check with session :: flash in Laravel

My question is about how to deal with this kind of errors. So far I know that this happens because you can not delete a record that depends on another record of another table, which are related. But my question is if you can show another k...
asked by 27.09.2018 / 23:27