Posts by Bruno Santos • 103 points
10 posts
-
-2
votes1
answer510
viewsQ: Login with digital certificate with PHP
Good afternoon guys, I’m trying to use the certsign login api https://www.certisign.com.br/produtos/desenvolvedores So far so good, I was able to send the request and get the return that is the…
phpasked Bruno Santos 103 -
-1
votes1
answer1074
viewsQ: Problem when adding a FOREIGN KEY
Guys I’m having trouble adding a foreign key in Laravel 5.4. Follows the codes of migrations down below: Schema::create('anexos_posts', function (Blueprint $table) { $table->increments('id');…
laravelasked Bruno Santos 103 -
0
votes0
answers82
viewsQ: TASK CRON LARAVEL
I set up the cron to perform scheduled tasks on Laravel and returns the following error: [16-Apr-2018 15:53:02] PHP Warning: Unexpected character in input: '\' (ASCII=92) state=1 in…
laravelasked Bruno Santos 103 -
0
votes1
answer43
viewsQ: Problem when deleting relational data
Gale need to delete data in cascade, by deleting the record from table users is not deleting data from table documents Migration users: Schema::create('users', function (Blueprint $table) {…
laravelasked Bruno Santos 103 -
0
votes1
answer221
viewsQ: Authentication auth Standard
Good morning guys, I decided to disable users, now I would like to know how I can allow only enabled user login, in the table users I added a column called disable, if the user disable is false…
laravelasked Bruno Santos 103 -
1
votes1
answer58
viewsQ: How do I store 2 SQL queries in a single variable?
Good afternoon guys, I am trying to make 2 queries in my application and I want both to be stored in a single variable, can I do ? if yes as I do ? Consultation 1: $usuarios = DB::table('users')…
laravelasked Bruno Santos 103 -
1
votes0
answers51
viewsQ: Accentuated error in e-mail
In the archive .env of my application in Laravel set a default name for sending email for example: MAIL_FROM_NAME='Registro Jurídico' and in the inbox comes Registro Jur?dicdico, What can I do to…
laravelasked Bruno Santos 103 -
1
votes1
answer172
viewsQ: Random search
I am making a random query in the table users of my application in laravel, example below: User::inRandomOrder()->paginate(10) It actually returns me the result randomly, but I need the entire…
laravelasked Bruno Santos 103 -
1
votes1
answer856
viewsQ: Typeahead js Autocomplete in Laravel?
I am implementing the AUTOCOMPLETE typeahead js bootstrap in my application Laravel and works perfectly, currently it returns only the name of the municipality table municipalities, only from this…
-
4
votes1
answer398
viewsQ: Saving data with hasMany relationship
I’m trying to do an update and three tables related to Laravel, the past data comes from a single view, and the relationships have been made, should be the update action of my controller that is not…
laravelasked Bruno Santos 103