Questions tagged as 'laravel'

2
answers

Problems with accents in Eloquent query using pluck ()

I have problems with an eloquent query when using the collection tool pluck The accent is perfectly preserved in the BDD Query using Eloquent $listFinal[].=FAQ::where("id",$ids)->get()->pluck('answer'); Final result prin...
asked by 10.07.2018 / 18:35
2
answers

How to pass a variable from one function to another in laravel?

Best regards, colleagues, I have the following doubt regarding this, suppose I have the following functions in one of my controllers: public function DatosEstudio(Request $request){ $ConsultaActividades=DB::table('actividades')->select('no...
asked by 29.04.2018 / 20:37
1
answer

Customize Auth of Laravel

I have a big question, today I was browsing the Auth of Laravel, the problem that I could not solve was the following: Modified the migration users by: public function up() { Schema::create('sis_users', function (Blueprint $tabl...
asked by 07.05.2018 / 02:58
1
answer

Return arrangement of views from laravel to ajax

I have a method that returns an arrangement of views $array = [ 'desktop' => view('results-json'), 'ipad' => view('results-json-ipad'), ] return $array; How can I make that arrangement can be rendered in the view if I am acce...
asked by 30.10.2018 / 20:07
1
answer

Convert clause "In" sql to laravel 5.6

I need to be able to pass the following query Sql containing the clause "In" to eloquent in laravel 5.6 and that I could not perform. SELECT sum('monto_facturado') FROM 'peticiones' WHERE 'id_presupuesto' IN ( SELECT id...
asked by 07.05.2018 / 22:11
2
answers

laravel 5.6 error in migration

I try to create a login in laravel 5.6 and at the time of making the migration I get the following error     
asked by 16.04.2018 / 07:26
1
answer

Hide forms in Laravel 5.5 only visually

I am doing a project in Laravel 5.5. I have the following form to edit a post: The idea is that the only forms that the user can see are the notes and the description. The rest of the other fields will already have a value in the database...
asked by 16.04.2018 / 05:06
1
answer

inner join and left join in Eloquent Laravel

Assuming we have the following table structure in a database USERS TABLE MariaDB [blog]> describe users; +--------------+--------------+------+-----+---------------------+----------------+ | Field | Type | Null | Key | D...
asked by 17.08.2018 / 03:23
1
answer

Error Base table or view already exists: 1050 Table 'users' when migrating Laravel 5.5

I find an error when performing the migration in Laravel 5.5 This is the code of my migration file: <?php use Illuminate\Support\Facades\Schema; use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Migrations\Migratio...
asked by 18.08.2018 / 07:07
1
answer

CSS import into another CSS and laravel mix

I am uploading a template for the administrator area and it turns out that the css matrix style.css in its code has an import of other css that I also have, the problem is that I do not load those css and I do not understand how to include them...
asked by 04.04.2018 / 04:26