Most voted "laravel-5.3" 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.3 feature
Learn more…132 questions
Sort by count of
-
9
votes2
answers1707
viewsRoutes Laravel 5.3
Good afternoon guys, I noticed that Laravel 5.3 has a new folder "Route", with the routes. By default it uses web.php I wonder, how can I create other routes without being inside the web.php, I…
-
8
votes1
answer10928
viewsWhat’s the difference between @Yield and @include on Laravel?
I’m learning Laravel 5.3, @yield and @include seem very much the same to me, the only difference I know is that @include injects the variables of father and may also include other variables. What’s…
-
7
votes1
answer9661
viewshtmlspecialchars() expects Parameter 1 to be string, Object Given
I’m trying to make a button select in the Blade with @foreach to get the list of all Mysql databases. Only the @foreach works, I can get the values, but I’m not getting to put the bases inside a…
-
5
votes1
answer1374
viewsCreate Unique constraint with two fields in the Laravel request
I have in the creation Migration of my table the following: public function up() { Schema::connection('database2')->create('empresa_funcoes', function(Blueprint $table) {…
-
5
votes1
answer1200
viewsHow to create a database automatically in Laravel with all tables?
Well I need help in a problem, I am developing a system for the first time in Latin and I need to create a database for each user registered in my system, these databases should have the same tables…
php database sqlite laravel-eloquent laravel-5.3asked 5 years, 3 months ago Igor De Moraes Sampaio 79 -
5
votes1
answer602
viewsMy Laravel project does not climb the server
I’m following the following online course on the youtube website: 1 - CRUD en LARAVEL & Vuejs - Webpack, Laravel Mix, NPM, Axios | Rimorsoft Online When I go up the server with the command yarn…
-
4
votes1
answer122
viewsDo a Hasmany per date with Laravel 5.3?
Is there any way to make a HasMany bringing records by date? public function despesas() { return $this->hasMany(Despesa::class); //registros apenas desse mês } I tried to use the following, but…
php laravel laravel-5 laravel-eloquent laravel-5.3asked 7 years, 9 months ago Felipe Paetzold 4,527 -
4
votes1
answer4352
viewsHow to access the public Storage directory in Laravel 5.3?
I need to access images saved in the directory /storage/app/public in views, but I can’t, I have a 404. Here’s what I’m doing: <div class="row"> <img src="../storage/app/public/3.jpg">…
-
4
votes1
answer1609
viewsRun an Laravel Schedule every minute?
I’m using the Laravel 5.3 and would like to perform a task every minute, within the task I will put some checks, the question is to make it run every minute. I did the following in the Kernel App:…
-
3
votes2
answers412
viewsHow to find out what is the first or last item of the Loop in Laravel?
I got the following foreach in Laravel. @foreach($values as $value) <li>{{ $value }}</li> @endforeach I would like to add a special information when it comes to the first loop item. In…
-
3
votes1
answer345
viewsHow to check credentials before authenticating to Laravel 5.3?
My application uses Laravel’s ready authentication, but I need users to log in from a web service. So what I’m trying to do is that if the guy exists in the application database, he does Laravel’s…
-
3
votes2
answers230
viewsIs there a way to clear the field formatting before going through validation?
I’m trying to search the net how I solve this and it’s taking a long time, it seems to be something simple but I’m breaking my head, I decided to create a post here. I’m using Laravel 5.3 with Mysql…
-
3
votes1
answer273
viewsProblems with session Standard 5.3
I’m having trouble setting and picking up items from a sessão, in this case I am setting which page should mark in the menu as active. In the __contruct of mine controller I’m doing like this:…
-
3
votes1
answer438
viewsHow to sort by two parameters with Laravel 5.4?
I am making a decreasing order to list winners, but it is based by note. My search is as follows: public function getHistorico($id_avaliacao) { return $this->where('avaliacao_id', $id_avaliacao)…
-
3
votes1
answer324
viewsRequired_if with more than one field in Laravel 5.3
I have the following situation: I want one field to be mandatory only if the other two are null, if one of the other two is not null this field is no longer mandatory. I thought I’d use the…
-
3
votes2
answers2495
viewsHow do I sort the list alphabetically in the Standard?
I have a query that lists me several users I want to sort these users by alphabetical order as I can do ? php private function getChilds(array $elements, $parentId = 0) { $branch = array(); foreach…
-
3
votes1
answer2086
viewsHow to create functions available globally in the Standard?
I would like to create functions that are globally available to reuse the code. What would be the best way to do this, in the Standard... The flow I need would be like this.: I’ll get a requisition…
laravel laravel-5 laravel-eloquent laravel-5.3 laravel-bladeasked 5 years, 8 months ago Sidiclei F. Almeida 307 -
2
votes1
answer694
viewsLaravel 5.3 - About Changing the App Directory
I created a project, within the project I created my own file structure instead of using the App folder, so I created a call Massoterapia, in the documentation informs that it is necessary to change…
laravel-5.3asked 7 years, 9 months ago Rafael 43 -
2
votes2
answers1529
viewsHosting Laravel system 5.3 in subdomain
Good afternoon. I have a problem to upgrade my system created with Laravel 5.3 for hosting. I created a folder for Project and put the files in the folder public for public_html. I made the…
laravel-5.3asked 7 years, 8 months ago Juliano Moura 43 -
2
votes2
answers4790
viewsHow to go up and configure a project with Laravel on the server
I’m starting with Laravel 5.3 and learning to explore all of its resources. But I have a question. What would this project of mine look like on the server (in production). Today my projects are…
-
2
votes1
answer46
viewsLarval Relationsships 5.4
I have 3 tables,[Users -> Departments -> Posts] where the Users table has many Departments that Departments has many Posts. My question is: How do I relate the 3 tables to the with() method…
-
2
votes3
answers2508
viewsHow to take a variable that is in the controller and put inside a view (Adjustable)
I’m messing with Lockable and from there came the following doubt. I need to take a variable that is in the controller and put inside a view. In case I am sending an email with data contained in a…
-
2
votes1
answer3314
viewsList and display images in the Laravel 5.3 Storage
I develop an application with Laravel 5.3, where the _DocumentRoot_ stays in the folder public. Upload images are in storage/app/public, but I don’t know how to list these images in a view, I can…
-
2
votes1
answer2141
viewsHost website in Aravel
I have a project in Laravel. When I put my files to my hosting server and access the domain, it shows me the files and folders instead of redirecting me to the index. On my machine I create a…
-
2
votes1
answer1277
viewsJoin no Eloquent - Join no Eloquent?
I’m learning Laravel now, and out of curiosity I came across the following problem, performing a Join between two tables, in my case, "categorias" and "subcategorias", when I will list the…
-
2
votes3
answers1024
viewsERROR: No application Encryption key has been specified
Good morning, I’m trying to download a template on this link: https://itsolutionstuff.com/post/php-laravel-57-create-admin-panel-exampleexample.html But at the time of the command : php Artisan…
-
2
votes1
answer49
viewsForm value does not return in the Collective
The form in the edção part, does not show the value coming from the database. All other form fields are returning the value taken in the database. See how I’m doing: <div class="col-md-3"> {!!…
-
2
votes1
answer26
viewsLarval Relationsships 5.4 accessing search data with?
I have a relationship of One To Many, wanted to know how to access data from the two tables. Behold: Album::with('imagemAlbums')->where('departamento_id', $id)->get(); Return of dd() now in my…
-
2
votes1
answer81
viewsLaravel 5.3 update JSON Mysql field - #3143 - Invalid JSON path Expression
Query generated by Laravel: update `informations` set `parameters` = json_set(`parameters`, "$.'Campo teste'.type", 'string'), `parameters` = json_set(`parameters`, "$.'Campo teste'.value", 'Novo…
-
2
votes2
answers1485
viewsI don’t understand why Empty says the variable is not empty
There is a module of Members, where members of a church are registered. By this registration will be shown on the main page the day’s birthday on a jQuery slide. But when he doesn’t have a birthday…
-
2
votes1
answer27
viewsSearch for similar metrics from the Youtube API
I was going through the documentation of API of Youtube, but I could not see clearly the following situation: How could I compare metrics (or data) of my two channels or videos of them, having in…
-
2
votes1
answer1821
viewsHow to send an email after user registration has been done? Laravel 5.4
I need that when a user is registered he takes the value of the email field and passes to the function $message->to($request->email) to send the email to the registered user. See how I am…
-
2
votes1
answer814
viewsEdit form Laravel
Guys, how do I bring the course that the student was enrolled in this edition part of the form. He brings the list of courses but wanted to already come with the course that the student was…
-
2
votes2
answers898
viewsUpdate with ajax in Laravel
I have a project in Laravel and I want to make sure that when the user type something in the text field, when taking the focus of the field he makes a request ajax to the server to update the…
-
1
votes1
answer250
viewsRestricted access to authenticated user data - Laravel 5.3
I have a table that relates to another one and this relates to some user. How do I so that only the owner of this relation can change/delete the item. Even if I just bring on the form the records…
-
1
votes3
answers1420
viewsHow to get only the month of a date with Laravel 5.3?
I need to take just the month of a date that comes by a $request. But I don’t know how to do it: if ($request->parcelas > 1) { $mes = $request->data_vencimento = date('m'); for($i = 0; $i…
-
1
votes1
answer268
viewsProblems deleting via ajax with Laravel
I’m having trouble effecting a deletion with Laravel 5.3. By submitting the ajax it simply is not returning me anything. Man JavaScript is like this: $.ajaxSetup({ headers: { 'csrftoken' : '{{…
-
1
votes1
answer4106
viewsTarget [Repository] is not instantiable while building [Controller, Service]
I’m developing a system that when sending data by form is returning me that error: Bindingresolutionexception in Container.php line 763: Target [Church Repositories Membrorepository] is not…
-
1
votes0
answers44
viewsLaravel request class rules validate delete
In the Laravel 5.3 there is some way to use the rules of the classes request not to let a bank record that has relationship be deleted? Similar to the rule that doesn’t let a record be entered…
-
1
votes1
answer499
viewsDynamic list in alphabetical order?
Within that array of my dynamic list, its contents are returning in a way disorderly, how do I put it alphabetically? <div class="form-group"> <label for="nome">Categoria do…
-
1
votes0
answers1022
viewsFile Download with Laravel 5.3
I need to make PDF files available for download. I don’t know if I’m at least on the right track, but I’m having an error that indicates the file doesn’t exist. My controller is as follows: public…
-
1
votes1
answer235
viewsGet authenticated user in constructor
After a lot of research and taking a look at documentation, I fully understand that and why can not do the "old fashioned", but wanted a solution/ workaround to do the following: I have a base…
laravel-5.3asked 7 years, 8 months ago Miguel 29,306 -
1
votes2
answers291
viewsProblem with login in Laravel 5.3
I have a project that consists of an administration. What I’m doing is logging in, I already created the table and entered a password user in the mode Hash of Laravel. I have the system that…
laravel-5.3asked 7 years, 7 months ago César Sousa 2,025 -
1
votes2
answers251
viewsProblem with logout in system Aravel 5.3
I have an admin who is already logging in correctly, I have the logout function done but this giving the following error: when I logout says that there is no column remember_token on my table. How…
-
1
votes1
answer64
viewsError in counting data numbers from a table using JOIN in Laravel 5.3
I’m doing a query that will list users with data from multiple tables so I’m using JOIN. I’ve already been able to list the user data, what I’m trying to do now is count the number of players that…
-
1
votes1
answer1800
viewsRelationship Many-to-Many Laravel 5
Good afternoon. I am developing a system in Laravel 5.3 with the following tables: From the commission id, I need to bring all the related data in a view where I will list in a table which…
-
1
votes1
answer767
viewsMulti-Insert with Laravel 5.3 dynamic form
I am trying to do a multiple Insert with Laravel 5.3 in a table as follows: Form {!! Form::open(['route' => 'demanda.store', 'class' => 'form']) !!} <div class="form-group form-inline">…
laravel laravel-5 laravel-eloquent laravel-5.3asked 7 years, 7 months ago José Cicero Rocha Cavalcante 11 -
1
votes1
answer418
viewsLaravel Blade prints unknown values
I use Laravel 5.3. I have a variable that returns this value in a var_dump(): array(3) { [1]=> string(5) "10:00" [2]=> string(5) "10:20" [3]=> string(5) "11:40" } But if I give:…
-
1
votes1
answer1087
viewsLaravel 5.4 - Send e-mail with text attached?
The case is simple: I need to generate a text on Laravel based on Array and then attach this text file with Attachments via Mail::to()!
-
1
votes1
answer2006
viewsHow to get all users currently logged in to Laravel 5.4
I need to loop all users who are currently logged in to the system. How could I do that? I know with auth()->check() we can know if a user is logged in. More I wanted to know of everyone who is…