Posts by Fernando Friedrich • 28 points
6 posts
-
1
votes2
answers851
viewsA: PHP - Laravel - Send a data entered in the database to another view
You can get the ID after insertion, then your method would look something like: public function store(Request $request, Instrutor $instrutor) { // $dataform = $request->except('_token'); $insert…
-
0
votes1
answer135
viewsQ: How to identify which method called the view in Laravel 5.4?
How can I identify which método who is calling the view within itself? Example: Indexcontroller.php public function create() { return view('index'); } Inside the archive view/index.blade.php how do…
-
0
votes3
answers640
viewsA: How to resolve foreign key error 150 in Migration with Laravel?
Another way to create the relationship field: $table->integer('categs_id', false, true);
-
0
votes2
answers329
viewsA: Phpmailer sends email but does not send variable values
On the line $mail->Body = '$mensagem_contato'; you must enter an HTML code with the variables. For example: $html = 'Nome: ' . $nome .'<br>'; $html .= 'E-mail: ' . $email .'<br>';…
-
0
votes2
answers649
viewsA: Error while doing relationship with Lockable
See if it resolves by stating the name of the field referenced in the relation, because by default Laravel identifies the related fields by the nomenclature table_id Example: public function tipo()…
-
-1
votes1
answer752
viewsA: Laravel 5.4 and Dompdf - problems?
A recommendation for PDF with Laravel that I give is to use the libraries "barryvdh/Laravel-Snappy" "h4cc/wkhtmltoimage-amd64" and "h4cc/wkhtmltopdf-amd64" in my opinion is the best way to generate…