Questions tagged as 'laravel'

1
answer

Laravel call variable

I'm new to laravel and I'm trying to call the variable I saw in the video lesson but it still gives error control <?php namespace App\Http\Controllers; use Illuminate\Http\Request; class SiteController extends Controller { public...
asked by 18.06.2018 / 17:26
2
answers

Real-Time How it works. Well I'm having problems with my tests Laravel 5.4

What do I need? I need when a user in the frontend sends a message to the system and the dashboard backend receives a real-time notification that the message has just been created. I'm doing this. In my controller in the store () method of the c...
asked by 12.10.2017 / 02:25
1
answer

Laravel: Upload images and files linked

I have the following code: <link rel="stylesheet" href="css/v1.css"> , but the page does not load it. When inspecting element the following error appears: Astheimageshows,itcomeswiththelink: link , however if I add the public in u...
asked by 19.10.2017 / 23:48
1
answer

How to hide fields in queries using eloquent laravel using Join method

Of a question, I was given a way to query with child objects using the Join of eloquent, The query is below: $dados = Roda::join('veiculos', function($query) { $query->on('veiculos.id', '=', 'rodas.veiculo_id'); $query->where('ve...
asked by 17.10.2017 / 14:12
2
answers

How to access relationship attribute in Laravel?

In the image below we see a typical example of Collection in Laravel. We can see in relations another collection. How do I access this in View? I'm doing so on the Controller: $users = User::with(['logs' => function($q) use ($startA...
asked by 02.10.2017 / 18:43
1
answer

How to use pagination with Laravel DB :: select?

   testController.php $jogos = DB::select("select * from jogo where id_u ='$id_u'"); This is the code I want to page in View using blade    jogo.blade.php {!! $jogos->links() !!} $jogos = DB::select("select * from j...
asked by 27.09.2017 / 01:42
1
answer

How to test cron in laravel?

I've created a cron for sending emails every time. But how to test the operation? Code <?php namespace App\Console\Commands; namespace App\Console\Commands\EnvioEmailBlCron; use Illuminate\Console\Command; class envioEmailBIcron ext...
asked by 25.10.2017 / 21:06
3
answers

How to find the PHP version of a laravel project?

How to find out the php version of the laravel project, do you have any command in cmd?     
asked by 24.10.2017 / 00:03
1
answer

Laravel 5.4 - Update in related tables

What is the best way to do a update on two tables at the same time? I thought it was just calling the related table, but when I do this it just does the update in the service table and not the client table. I was able to do this by pa...
asked by 05.10.2017 / 16:17
1
answer

How to send an email after the user registration has been made? Laravel 5.4

I need a user to get the value of the email field and pass it to the $message->to($request->email) function to send the email to the registered user. See how I'm doing. Except that the $message->to() object is not being dy...
asked by 04.10.2017 / 02:13