Most voted "laravel-5.4" questions
Laravel is an open-source framework for developing web applications and services with PHP. Prefer the Laravel-5 tag if you are not dealing with an exclusive Laravel 5.4 feature+
Learn more…53 questions
Sort by count of
-
4
votes2
answers2451
viewsChange storage location in Laravel 5.4
The current storage location of the Laravel is /Laravel/Storage/app/public. How do I change to /Laravel/public. I tried to edit filesystems.php but was unsuccessful: Controller store function:…
-
4
votes1
answer527
viewsBlade OR syntax within Laravel Collective input value
The following input works normally, but when I pass it to the syntax of Laravel Collective, says that the variable $servico does not exist. It does not exist at all, so it should show the value…
-
3
votes1
answer4474
viewsMany Relationship for Many
Well I tried to read the documentation and develop this relationship but could not, actually I need to inform what is the name of the type of user. The database model is thus : MODELS involved…
-
3
votes1
answer282
viewsMigrations Laravel 5.4
I’m having trouble trying to run my Migrations, when I run: php Artisan migrate:refresh --Seed Error occurs below: [Illuminate\Database\QueryException] SQLSTATE[23000]: Integrity constraint…
-
3
votes4
answers7452
viewsFormatting date with Laravel
I’m unable to change the date format using the laravel 5.4 My model is like this: class Feriado extends Model{ protected $fillable = ['id', 'data', 'descricao', 'created_at', 'updated_at' ];…
-
3
votes2
answers39
viewsHigh error when extracting data
Migrate does not give any error and also get popular table normally with Seed. But when I try to extract data from my database, it does not work. namespace App\Http\Controllers; use App\Todo; use…
-
2
votes1
answer301
viewsCase-sensitive query in sql server with Laravel 5.4
I am making a query to the database (sql server) for user and password validation with Laravel 5.4 but, the query is running as case-insensitive. In the database is: pwd = Aa12a Input: password =…
-
2
votes1
answer292
viewsError sending files to aws S3 server in Laravel
I am trying to send a file to the S3 server of Amazon, followed the documentation of Laravel 5.4 that talks about Filesystems. But it returns the error: Error executing "ListObjects" on…
-
2
votes0
answers234
viewsHow to paginate a Javascript filter in Laravel 5.4?
I created a search filter for a table, in it I have Description, Model, Status, among other 'inputs' to search. But after the search is done, the paging does not follow the result. Follow the code…
-
2
votes2
answers4276
viewsHow to implement a validation rule in Laravel?
I would like to know how to validate a rule in the Auth form. In this case, it is a CPF rule. The validation rules and error messages I already have, but I don’t know how to implement in the…
-
2
votes1
answer309
viewsMultiple Nvironment Portable
How do I create multiple Nvironment and mute at runtime the Nvironment I’m using in Laravel 5.5?
-
2
votes1
answer590
viewsSave form data to database
I’m having a hard time trying to create a form on Laravel 5.4. The form appears normal, but when I click the button, the page reloads and the data is not saved in the database! {{…
-
2
votes1
answer923
viewsSelect with Laravel foreign key
Hello, I managed to solve a foreign key problem just now and came across a second, I have no idea how to recover in a select in the view the data from another table. If anyone could give me a simple…
-
2
votes2
answers714
viewsReturn relationship data and generate PDF in Laravel/Dompdf
Hello, I have a problem and I found a part of the solution here, I am dealing with it in a different way in another question, but I decided to test a way that I saw here of the user Vigilio on…
-
1
votes2
answers2424
viewsTrying to get Property of non-object?
This is my View: <tbody> @if(isset($pessoas)) @foreach($pessoas as $p) <tr> <td>{{$p->nome}}</td> <td>{{$p->idade}}</td>…
-
1
votes0
answers659
viewsProblems with print layout
I’m having trouble putting together layout for printing on Elgin i9, mount the script on laravel 5.4 thus: $produto = Produto::find($request->input('COD_IDENT_PRODU')); $qtd =…
-
1
votes2
answers1228
viewsProject Deploy on Laravel 5.4 on Umbler
Hello, I saw the Brazilian community of Laravel commenting on Umbler a good BR server for project deploys in Laravel. I went to test the deploy of a project, but I couldn’t get it to work on the PRO…
-
1
votes1
answer694
viewsProblem when making request with ajax in Laravel 5.4
I am learning the web language for creating my website and using the Laravel 5.4 framework, and having problems with sending forms with ajax. Every form I submit, returns me the error: Unprocessable…
-
1
votes1
answer1920
viewsAdd Datatable features in Laravel 5.4 with Adminlte
Good evening gentlemen, I recently started a project in order to update myself with Laravel 5.4, created a project and am using the adminLTE for the layout. The question is, this Adminlte has a…
laravel-5.4asked 7 years, 1 month ago Guilherme Dambros 172 -
1
votes1
answer423
viewsForm on Laravel 5.4?
I’m having a hard time trying to create a form on Laravel 5.4, at the time of loading View appears the following error: "Errorexception in helpers.php line 532: htmlspecialchars() expects Parameter…
-
1
votes1
answer28
viewsConstraining Eager Loads returning unfiltered
I have a problem with Eager loading on Laravel 5.4.24. Following the documentation, I added the code: $profiles = Profile::with(['platforms' => function ($query) { $query->where('name', 'PC');…
-
1
votes0
answers246
viewsMigration with multiple banks in Laravel
I am trying to create a Migration that has a foreign key referencing the id of a table from another database, both Mysql. Follows the code: //config/database.php 'mysql' => [ 'driver' =>…
-
1
votes1
answer281
viewsChange Laravel User table fields 5.4
I’m using Laravel on my TCC and study it through videos and internet articles. I created the authentication part with the make:auth command and everything is working correctly, but I would need to…
laravel-5.4asked 6 years, 10 months ago Lucas Chibior 11 -
1
votes1
answer303
viewsPick JSON value returned from Laravel
I got the following JSON returned from a controller Laravel: { "id": 105, "tratamento_id": "24", "eim": null, "oft": "12", "codigo_produto": "CO009-1200-1200", "descricao_produto": "COMPENSADO…
-
1
votes0
answers195
viewsLaravel Password Reset is not working with Customized User model
I am trying to use the Laravel authentication system with some customizations. This is my User model: use Illuminate\Notifications\Notifiable; use Illuminate\Foundation\Auth\User as Authenticatable;…
-
1
votes1
answer335
viewsSaving multiple images
I’m not able to save multiple images in my database, follow my code below to in the highlighted line with the arrow (-->). Observing: when it was just a normal saving image. public function…
-
1
votes0
answers454
viewsProblems with . htaccess when hiding public folder
I need to deploy for production of an application that I migrated to Aravel 5.4, in test environment I am using the virtual host in windows where I type in the url 'meusite1' and until then beauty.…
-
1
votes1
answer537
viewsError when connecting with sqlite in the Laravel
Internally everyone is working, migrations, tinker, sqlite3, but in the server application it always queries the mysql instead of the sqlite for all operations, ie he is using Connector.php instead…
-
1
votes1
answer1800
viewsHelp with error Trying to get Property of non-object Laravel
I have a relationship, where I try to get the name of a teacher, I can return his id, but when I try to return the name it gives me the message Trying to get Property of non-object My code is like…
-
1
votes1
answer291
viewsCreate method in the Windows with rollback
I was studying Laravel 5.4 and I came up with a question. As a good programmer I googled several ways and found nothing like. Imagine the following case: $prod = $this->product->create([ name…
laravel-5.4asked 6 years ago Arthur Calazans 44 -
1
votes2
answers39
viewsPopular column with created id + date/time
I have a column with the name "code". Is it possible to complete it using the same method as the form? If yes, how can I implement this in my code. Method that receives the form and inserts it into…
-
1
votes2
answers189
viewsGet the sum of last week’s records
Hello, I am studying Laravel I’m using the version 5.4, I need some help 'cause I’m not getting back the total records from last week’s database, I managed to return the total, and the total of the…
-
0
votes1
answer1256
viewsConfirm exclusion in Laravel 5.4
i have the form below, in which a button deletes the record of the current line. <form class="form-inline" method="POST" action="/servidores/{{ $serve->id }}"> {{ method_field('DELETE') }}…
-
0
votes0
answers496
viewsLaravel - Redirect::to or Redirect::back giving Tokenmismatchexception error?
The following is happening, I have the login screen that does some checks, in case you do not pass any in my Controller I make a redirect for url login message with the error. This is where the…
-
0
votes0
answers74
viewsRunning dll via php and Laravel
I have a project in php with Laravel and I need to use some functions contained in a dll, I tried to use the COM(Component Object Model) class native to PHP, but the Laravel from as a class not…
-
0
votes0
answers127
viewsError executing make command with repository plugin
When I execute the command php artisan make:entity User it returns the error [ReflectionException] Method Prettus\Repository\Generators\Commands\EntityCommand::handle() does not exist I did the…
-
0
votes1
answer1009
viewsSend contact to email with Laravel?
This sending all page to e-mail, but does not send the information of input? Controller public function store(Request $request) { Mail::send('template.contato', array ( 'nome' => $request ->…
-
0
votes1
answer546
viewshow to pass many controller variables to the view in the Laravel
I want to pass these variables, but it seems that quantity prevents me, there is another way? return view('pontuacao')->with('somas', $somas[0]->p)->with('somas1',…
-
0
votes1
answer153
viewsLaravel 5.4 does not have Middleware/Authenticate.php
I am following an example about jwt and Laravel 5 and I am in need of Middleware/Authenticate.php file, however, in my project there is no file(Laravel version is 5.4.36), I tried the command php…
-
0
votes1
answer179
viewsLaravel 5.4 (1/1) Tokenmismatchexception
Locally all forms work, but when I put online is giving erro as if I didn’t have the _token attributed to forms. APP_NAME=MonkStudio APP_ENV=production…
-
0
votes2
answers1254
viewsValidate Laravel Single Field
Speak guys, I’m trying to learn Laravel and I’m currently caught in a seemingly simple thing, is the following. I created a very simple system with login and other things, and I’m trying to…
-
0
votes1
answer158
viewsHow to create Scope in Laravel 5.4 with linked tables via belongsToMany
The structure of the table is this: pessoa id - integer nome - string unidade id - integer nome - string pessoa_unidade pessoa_id - integer unidade_id - integer I have the models: class Pessoa…
-
0
votes1
answer107
viewsHow to pick up specific item In the Laravel Blade
How do I pick up a specific item on Laravel Blade? Example: $(document).ready(function(){ var id = 1; $('body').append('{{ $projeto->'+id+'->name}}' }) <body> Deve Aparecer aqui o nome…
-
0
votes1
answer550
viewsLaravel 5.4 cache problems
Hi, I’m having apparent cache issues on Laravel 5.4. When I give a UPDATE in a form, I direct the user to the listing of records. When you return to the editing form, the old data (before making the…
-
0
votes1
answer1095
viewsSwift_transportexception error when sending e-amil using SMTP + Laravel 5.4
Speak Person, one more trouble, it’s as follows: I am trying to send an email through my application (api), where I develop with Laravel 5.4. The thing seems very easy, just not! My file . env is as…
-
0
votes1
answer130
viewsDoubt storageAs Laravel 5.4
I was with my local Laravel project, and I use this code to save my images: $request->profile_photo->storeAs('empresas/perfil', $filename, 'public'); Now I hosted my project, to host I needed…
-
0
votes0
answers144
viewsLaravel error that does not find a routine that exists
Giving my system the error below in Laravel 5.4. What may be causing this error? I’ve reviewed and I’ve run the remote: php artisan clear-compiled Follows parts of the code and its classes.…
-
0
votes2
answers281
viewsRetouch several items of a relation - Laravel
I’m having a little problem, I have a relationship of course and student in the system. I created a show function in the controller and wanted to make sure that when clicking on the details it…
-
0
votes1
answer559
viewsPDF in Laravel returning selected View
Hello, I am using Dompdf to try to return a pdf report, but every time I call the view it is loading as if it were in an infinite loop and nothing happens. Follows my code Cursocontroller.php public…
-
0
votes1
answer702
viewsRoute api in Laravel 5.4
Through Composer, I started a project with the command: composer create-project --prefer-dist laravel/laravel api After the installation of the dependencies, I was able to visualize the "Welcome" of…