Posts by Lucas Hart • 126 points
9 posts
-
0
votes1
answer95
viewsA: Authorize AJAX in Laravel’s Register.blade.php form
From what I saw in your code, you’re not passing the token. You can put this field to go by default in all request headers so just put this meta tag in your template (to follow on the other pages)…
-
5
votes1
answer3131
viewsA: How to do Inner Join with Laravel?
The use of Ner Join does not need to prepare the relationship in models (which is always good to do). A good tip to prepare an Inner Join, would first check how it works directly in the DBMS of your…
-
1
votes3
answers4047
viewsA: How to translate Laravel?
This standard package translates only validations and messages generated by the Standard. The messages of Blade are not translated by default, you also have to prepare your Blade to be translated.…
-
1
votes2
answers714
viewsA: Return relationship data and generate PDF in Laravel/Dompdf
The route must be Route::get('/{id}/viewpdf', 'PdfviewController@index'); If the parameter was optional you would still have to use Route::get('/{id?}/viewpdf', 'PdfviewController@index');…
-
1
votes1
answer559
viewsA: PDF in Laravel returning selected View
What may be happening, is some variable that is used in your master is hindering the printing of pdf. tries to remove the template, if it continues, tries to debug the controller called by call, so…
-
0
votes2
answers681
viewsA: Error: Trying to get a Property of non-object
Probably the mistake is making in the relationship $p->status Check if all proposed relationships with status are filled. This usually happens when the named relationship is null so there is no…
-
0
votes2
answers281
viewsA: Retouch several items of a relation - Laravel
When you use: $Students = Course::whereHas('students')->with('students')->Where('id', $id)->get(); You’re saying, look for courses with id = $id, and that have students (you’re not doing…
-
0
votes1
answer36
viewsA: Warning when calling orderby method statically
The way you are doing it is not wrong, but I think the best way to call the models would be to call them in __constructor ex.: private $artigoModel public function __constructor(Artigo…
-
0
votes2
answers808
viewsA: How to automatically move data to the view in Laravel Resource Controller?
Inside the controller before the $article = $article->first(); of a DD, the correct one must be listing only one object and not the Collection. In the listing view, you are passing only one…