Questions tagged as 'laravel'

2
answers

How does laravel know which table of my bd will be used for my operation?

I have a table in my bd called lost_animals, it was created without using migrations. I created a class for her:      namespace App; use Illuminate\Database\Eloquent\Model; class AnimalPerdido extends Model { /** * The attributes...
asked by 24.11.2018 / 13:47
1
answer

PHP 7 Syntax error, question mark before specifying the parameter

I developed a site at Laravel using the PHP 7.2 version, when I uploaded it to the server ( which is using version 7.0 of PHP ) I noticed that it was giving a syntax error in the following line public function __construct(?...
asked by 22.03.2018 / 20:52
2
answers

Options for generating API documentation in Laravel

I need a lib to generate API documentation in Laravel 5.4?     
asked by 01.06.2017 / 13:42
3
answers

Laravel 5.5: same field in several rows in seeds

As you can see in the code below, the created_at field is the same at all, the only thing that changes is nome . Would you have any way to write created_at only once, but insert it on all lines? DB::table('generos')->ins...
asked by 16.11.2017 / 13:49
3
answers

Help with Asset (Laravel Blade)

Alright? I'm working on a project with the Laravel framework. In my project I can call a js file, but it does not work. <script src="{{asset('js/formCurriculo.js')}}" type="text/javascript" async="true" defer></script> Whil...
asked by 10.01.2018 / 19:46
2
answers

How to resolve conflict between Vue.js and Laravel 5.4 in .blade

I have the following element in .blade (with the intention of interacting with vue not with laravel): <div id="app"> {{ message }} </div> To try to activate vue: window.Vue = require('vue'); var app = new Vue({ el: '#app'...
asked by 10.03.2018 / 06:30
2
answers

VueJS: How to display a value in the dynamic modal input with v-model or v-bind: value

There is a listing where I return all users active on the system and there is a button for Edit User , when I click on this option, I open a modal, capture the user id and data of that user in question, and I load the inputs with the fields....
asked by 08.09.2016 / 18:11
1
answer

Error "Warning: putenv () has been disabled for security reasons"

When I upload to production I get these errors:    Warning: putenv () has been disabled for security reasons in /home/httpd/htdocs/telekobr/site/vendor/vlucas/phpdotenv/src/Dotenv.php on line 86 reasons in /home/httpd/htdocs/telekobr/site/ven...
asked by 11.05.2017 / 18:08
2
answers

Save Date to UTC Table Brazil

I'm doing an insert into a MySql table that contains multiple date fields. I left the current_timestamp value in the created_at column of the table. If I do an INSERT now, it's inserting: 12:29:00. That is, three more hours. And i...
asked by 01.07.2016 / 14:30
1
answer

How to escape a key / keys in Blade?

In Blade, the key characters (or key) are intended to add the purpose of printing the content. It is complicated for echo . But I was wondering if I really needed to display content, containing the exact value of the keys, what could I...
asked by 28.06.2016 / 16:41