Most voted "laravel-5" questions
Laravel is an open-source framework for developing web applications and services with PHP. Use this tag for specific questions about Laravel 5 or later.
Learn more…751 questions
Sort by count of
-
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
answer59
viewsHelp with a simple Join
Good evening, I don’t know what I’m doing wrong, I have two models, in Migration I created like this Schema::create('endereco_tipos', function (Blueprint $table) { $table->increments('id');…
-
2
votes1
answer750
viewsInvalid Handle returned - Laravel connection to SQL Server
I was developing an application with Laravel 5.5 with a Mysql database. Everything was working normally, however, now the database has been modified to SQL Server. When I perform the test, returns…
-
2
votes1
answer1104
viewsHow to set up remote database in Laravel 5.4
I am setting up bank in Laravel 5.4, but the same is hosted on another served, configured in Navicat is accessing normally, but Laravel does not connect. APP_NAME=Laravel APP_ENV=local…
-
2
votes0
answers83
viewsQuestions about Oauth and Tokens in an API
Before, I’d like to contextualize my scenario: I am a student in the field who has huge passion for mobile development and recently I have seen the need to create my own API’s to enable conversation…
-
2
votes1
answer616
views -
2
votes2
answers57
viewsError in Laravel 5.0
I have a connection problem in Laravel when running a query: PDOException in Connector.php line 47: SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)…
-
2
votes1
answer102
viewsInsertion in the bank with relationship N : M
I need to insert users into my database MySQL already with the relationship N:M, but I don’t know how to do it. Migrate: Schema::create('usuarios', function (Blueprint $table) {…
-
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
votes1
answer2197
viewsLaravel - Validate Unique field in update
I have a plate field on the table that needs to be unique IN MIGRATION Schema::create('professors', function (Blueprint $table) { $table->increments('id');…
-
2
votes2
answers213
viewsLaravel - Use OR inside the Where
I’m using the remote ->cont to count the return number, and for that I put a condition using the ->WHERE but when I try to put a || in the condition of the error he searched and I can not find…
-
2
votes1
answer48
viewsSQL with data associated with Laravel?
I have the following tables listed below Products id product value validity Consultation id user_id Consults_products id query product Whenever a user performs a query, the history is saved in the…
-
2
votes1
answer318
viewsIs there any way to generate Migrations based on an existing database in Laravel?
When I used Python’s Django, I was surprised by the command inspectdb, that is able to generate models based on an existing database. At Laravel, we have Migrations to work with the database, and I…
-
2
votes1
answer841
viewsLaravel 5, assuming variable in empty query?
I have a query, but sometimes this query returns an empty value (off the books). These query results are directed to generating a graph Highcharts, but when there are no values within the query, the…
-
2
votes1
answer88
viewsLaravel 5.7 - Side bar control via Controller
I’m developing a site that contains a sidebar that will show some information to users. This information is in a database, so I have to access it via controller and then send it to view. It turns…
-
2
votes3
answers1274
viewsHow to troubleshoot the error: Reflectionexception (-1) Class App Http Controllers admin Ufcontroller does not exist
Follow the code snippet route/web.php //Gerenciar UFs $this->group(['middleware' => ['auth'], 'namespace' =>'admin','prefix'=>'ufs'], function(){ //Inicio das Rotas de gerenciar os UFs…
-
2
votes2
answers3520
viewsResponsive bootstrap layout
I’m creating a system using bootstrap, to make it responsive I used the classes col-xs-12 col-md-2, when I resize the page the responsiveness works perfectly, but when I use the mobile mode of the…
-
2
votes1
answer24
viewsI’m trying to do a validation on the Laravel but it’s not going
When I leave the registration form fields without filling in, rule messages are displayed. This is the customer registration code: <?php namespace App\Http\Controllers; use…
-
2
votes0
answers31
viewsPHP Mail class does not load variables in the View
Laravel keeps returning me as an undefined variable, for the $bloger variable. I’ve tried every way I know how, but the mistake persists. I already loaded the view through the controller and it…
-
2
votes1
answer279
viewsWhat’s wrong with this non-responsive paging using boostrap 4 in Laravel?
I’m using Laravel to make a system, along with the framework Bootstrap. And I’m using the paging feature. However, I’m having trouble making the pagination numbers responsive. Both are not…
laravel twitter-bootstrap laravel-5 responsive-layout pagingasked 5 years, 2 months ago Arthur Abitante 439 -
2
votes1
answer227
viewsHow to validate an empty payload from an API?
I have an API that returns in error when I pass the payload parameter as: {}. This happens because it enters the method, going through the validation of the Standard. The validation of the rule is…
-
1
votes2
answers599
viewsLaravel - FPDF error: Undefined font
What am I doing I’m rewriting a small barcode generation system using Laravel. What went wrong I’m instantiating the classes normally, but when I use the method…
-
1
votes1
answer1862
viewsLaravel - Blank canvas
What I need I want to check if a blank Laravel project is working properly on the development server, IE, I just want to see if at least it loads the view, and then I’ll do some tests. What I did I…
-
1
votes0
answers116
viewsUse Google Youtube API V3 in Laravel 5
I would like to know how to install google api v3 in Laravel 5, I used Composer to download the package but I don’t know how to configure the providers and aliases. I need to make a system that…
-
1
votes1
answer161
viewsHow to concatenate value into a dropdownlist in Laravel 5?
How to add the first default value to a dropdownlist? I tried to do this way: {!! Form::select('Usuario.est_id',array('null' => 'Selecione') + $estados, null, ['class' => 'form-control']) !!}…
-
1
votes1
answer2309
viewsLaravel - The requested URL was not found on this server
What I did I made a form that registers the data in the database. Locally it worked perfectly. Problem It simply says it is not finding the URL. It is strange, because the error below says that the…
-
1
votes1
answer106
viewsFailed to register a package created in Laravel 5.1
I am developing a package for Laravel 5.1 and I have identified a problem that I could not find the solution. Displays the following error: FatalErrorException in ProviderRepository.php line 146:…
-
1
votes1
answer102
viewsProblems entering entire data into Sybase using Laravel
Hello, I’m having trouble inserting values into tables with entire data type columns using Laravel 5.1 and Sybase. Error 257 is listed when the exception is thrown. In the Sybase manuals it seems to…
php laravel laravel-eloquent laravel-5 sybaseasked 9 years, 3 months ago Ademir Mazer Jr - Nuno 2,258 -
1
votes1
answer408
viewsClass Not Found in Laravel 5
I have this Controller in the Laravel 5. Homecontroller.php <?php namespace App\Http\Controllers; use View; use App\Portfolio; use App\Cliente; class HomeController extends Controller { public…
-
1
votes1
answer316
viewsError doing INSERT - Laravel 5.1 + Postgresql
I have date fields in my form, but these fields are optional. When I fill in a date the registration is successfully performed, but if I leave the date field empty I get the following error:…
-
1
votes1
answer609
viewsRelationship N:N in Laravel does not record object attributes
My tables have, briefly, the following structure: minutes: id | vigencia products: id | nome | descricao ata_produto: ata_id | produto_id | vlr_produto | qtd_produto The same product may have…
-
1
votes1
answer1739
viewsHow to use "Sync" from Laravel 5.1?
I recently discovered a feature of eloquent called sync, I saw that he kind of compares the data passed with the data that’s in the database and deletes or inserts what’s different. I wanted to…
-
1
votes2
answers501
viewsSend data to sidebar.blade.php only
I need to build a menu using the registered categories. How can I do this without using a view? I have my layout.blade.php with a @include('sidebar') My consultation works on view…
-
1
votes1
answer107
viewsProblems using Entrust with Laravel 5.1
My OS is Linux, I installed Laravel 5.1 and was working correctly. I installed via Artisan the Entrust package and was configuring it following the instructions of…
-
1
votes1
answer379
viewsLaravel 5.2 Include Field for Authentication
Good afternoon, I would like a light to change the way Laravel performs authentication, I added a column (login) in the users table I would like to know how to do instead of authenticating with the…
laravel-5asked 8 years, 10 months ago Junior Morais 27 -
1
votes1
answer1597
viewsActivate Laravel Maintenance Mode 5.1 No Artisan
I know there’s a command php artisan down to activate the maintenance mode, but I have my application hosted and do not know how to give this command. Would you have any other way to do this?…
-
1
votes1
answer70
viewsCreate Fake Relationship/Relationship in Laravel model
I have a model for my post table, it looks like this: $post = Post::where('titulo_url', $titulo_url)->first(); //$post->id //$post->categoria_id //$post->titulo_url //$post->titulo…
-
1
votes1
answer943
viewsOrange Permissions 5 using Homestead
I’m using Laravel 5 with a Homestead box using Vagrant and virtualbox for this, as demonstrated in the framework documentation: http://laravel.com/docs/5.1/homestead#installation-and-setup the…
-
1
votes0
answers105
viewsProblems in displaying an image with the marked name in the folder
Folks I am updating a project of a client that was originally made in Vb.net and am moving to Laravel 5.1. Ta all right only one problem with the display of certain images that has in the folder…
-
1
votes2
answers2281
viewsHow to list routes in Laravel (No Artisan)?
In the Laravel 4 i know how to list all routes through the command line. Just do php artisan routes. However, now, I have need to do this in the source code of my application. That is, I need to…
-
1
votes1
answer500
viewsFlash Session does not work, Laravel 5.1
I’ve done this several times but for some reason now it’s not working, I can’t grab the flash from the view session Userscontroller: public function login_page(Request $request) { $title = "login";…
-
1
votes1
answer1057
viewsDelete Directory Image - Laravel 5.1
I have in my method the following code: try{ Tecnico::find($id_tecnico)->delete(); DB::commit(); return Redirect::back()->with('message', true); }catch (\Exception $e){ DB::rollback(); return…
-
1
votes2
answers436
viewsProblem with Laravel Routes 5
I organized my Controllers by folders: Ex:Dashboard/Concessesionaria/Brands -> Carroscontroller.php In Rota I tried to inform thus Route::get('Painel\Concessesionaria\Marcas', ['as' =>…
-
1
votes2
answers245
viewsData Display Issues Laravel 5.1
I’m a beginner in Laravel and I’m trying to bring data from a BD with multiple Postgresql schemas with Laravel 5.1 and is bringing me an error What configuration should be done for the model to…
-
1
votes1
answer211
viewsSorting the results of a query - Laravel 5.1
I currently have a code that receives data from registered companies and for each company it lists their reports as follows: @foreach($empresas as $empresa) // Recebe as empresas…
-
1
votes0
answers57
viewsNumber of queries to check user in the Standard
I have a system of user authentication, where do I use the API sentinel in the Laravel 5.2. When I do the Check_user() in the middleware to see if the user is logged in and has access to the route,…
-
1
votes1
answer1419
viewsHow to add my validation in Laravel Validator?
In the Laravel, both the 4 and the 5, we have the class Validator, which allows specific validations to be made. By default there are several, such as required, email, same and others. But I would…
-
1
votes1
answer5291
viewsLaravel Project Deploy by Git
I need to deploy an Laravel project installed on a dev pc on a Linux server. After downloading everything via Git, some folders are ignored by .gitignore. How do I run Composer to reinstall all…
-
1
votes4
answers1058
viewsGet the first 2 user names
Let’s say my selected user name is "Raylan Soares Campos", how do I display only the first two names? In the case "Raylan Soares". I’m using Laravel 5.2, I don’t know if you have any facilitator or…
-
1
votes1
answer616
viewsLaravel 5 mail format html with css
I’m sending an email through Mail of Laravel 5 $data = Input::all(); Mail::send('mails.sendteste', $data, function ($message) { $message->from('[email protected]', 'Sistema');…