Questions tagged as 'laravel-5'

1
answer

Add a new column to a table with data in Laravel

In Laravel we have a users migration that comes by default with the following structure public function up() { Schema::create('users', function (Blueprint $table) { $table->increments('id'); $table->st...
asked by 06.10.2018 / 21:37
1
answer

Display a date in one format and store it in another (Datepicker in Laravel)

I am working in laravel and I want to show in my Bootstrap Datepicker field a date in a format (dd / mm / yyyy) but I want to store it in format (yyyy / mm / dd). Is there any property in Datepicker to do that? This is my input: <div cla...
asked by 13.09.2018 / 20:18
3
answers

How valid is this query in laravel 5.6

$id_program_= DB::table('Programs')->select('id_Program') ->where("name","=",$row['name']) ->first('id_Program')->id_Program Erro: Trying to get property 'Program_id' of non-object     
asked by 21.09.2018 / 20:40
1
answer

Refresh composer

You see, I try to make fixes in DomPDF. To do this, I have to do an update in the Composer, for which I must use the composer update command, but this appears: It seems that there is an error due to incompatibilities with DomPDF. Ho...
asked by 08.09.2018 / 13:39
2
answers

Drop-down list with required value Laravel 5.5

I'm working on laravel 5.5 I have these lists: {!! Form::mySelect('id_uso', 'Uso', [0 => 'Escoge una opción'] + App\Usos::pluck('nombre', 'id')->toArray(), null,...
asked by 16.08.2018 / 19:00
1
answer

Store format in a variable

You see, I have a view where I want to show this: <span class="badge badge-danger badge-cat">Telefono</span><br> <span class="badge badge-danger badge-cat">Email</span><br> Since it is too hard to put the...
asked by 18.10.2018 / 13:03
2
answers

Delete residual Word file from my project

You see, I have the following code: public function imprimirWord(Juego $j){ $phpWord=new \PhpOffice\PhpWord\PhpWord(); $phpWord->getSettings()->setThemeFontLang(new Language(Language::ES_ES)); $section=$phpWord->addSection...
asked by 15.09.2018 / 15:52
1
answer

To be able to access a page created with Laravel from any PC

You see, I have created a project in Laravel for a job, and for the first time it is necessary for me to be able to access the project from any computer (come on, as with this same web page). I would like to know how I can adapt my Laravel proje...
asked by 23.07.2018 / 13:05
1
answer

Problems uploading an image

You see, I have the table Game: Schema::create('juegos', function (Blueprint $table){ $table->increments('id'); $table->integer('numero')->unique(); $table->string('nombre'); $table->unsignedInteg...
asked by 11.07.2018 / 16:10
1
answer

That a checkbox retains an old value

You see, I have a table with these values: Schema::create('contenidos', function (Blueprint $table) { $table->increments('id'); $table->string('nombre'); $table->timestamps(); }); I group all the rows in a v...
asked by 12.07.2018 / 16:55