laravel-5.7 Questions
4
Solved
Can we use laravel passport with different guards to authenticate APIs for two different types of users.
For example we have driver app for driver user and vendor app for vendor user. Both have the...
Monikamoniker asked 17/10, 2018 at 9:10
9
Solved
Hello i am using laravel 5.7.15
i am facing issue
<form method="post" action="my_post_Action" class="login100-form validate-form">
<input type="hidden" name="_token" value="B6et9cJOP5wNK...
Interlunar asked 4/12, 2018 at 9:8
5
Solved
I'm very new to React.js. I installed Laravel 5.7 and swapped Vue.js scaffolding with React by running this command:
php artisan preset react
Now the problem is, I cannot assign anything to the...
Shanteshantee asked 7/1, 2019 at 19:26
2
Solved
I am facing problem while installing Yajra Datatable by using this Command " composer require yajra/laravel-datatables:^1.0 "on Powershell and I got errors. I have Uninstall Wampp and installed Xam...
Arhat asked 7/11, 2018 at 22:12
6
Solved
I am new to Laravel and have been fairly successful in implementing user authentication. Now to move on to the next step I must allow only users whose status in active to login. For that I have add...
Adames asked 14/12, 2018 at 13:34
2
Solved
I just have done a git push in our online repo
When I checked the online repo and checked the public folder it shows this:
while in my local repo I have this in my public folder:
My local has...
Hoyle asked 6/2, 2019 at 3:8
2
I want to copy an eloquent model from one connection to another.
The way I have done this so far is as so:
$users = User::on('connection1')->where('tenant', 'foo')->get();
User::on('connect...
Flashing asked 28/6, 2019 at 1:53
1
I find out that the Pdf I attached to my email does not show when delivered to my email in Mailtrap but it shows in the RAW data section.
My Controller Method to send an email:
public function st...
Fubsy asked 2/2, 2020 at 2:10
2
Solved
What's going on with Laravel 5.7 Factories? When I run the factory on php artisan tinker it works fine. But when I use it with Unit Tests it throws an error:
Unable to locate factory with name [...
Rabies asked 15/10, 2018 at 4:39
6
Solved
I created a custom request to make my own validation. As i follow these article.
I created ProfileRequest
php artisan make:request ProfileRequest
Inside my ProfileRequest
<?php
namespace A...
Pleione asked 11/4, 2019 at 11:11
3
My code, using PHP artisan make: migration create_trigger command
public function up()
{
DB::unprepared('
CREATE TRIGGER roll_no BEFORE INSERT ON `students` FOR EACH ROW
BEGIN
SET @roll_num...
Jockey asked 6/3, 2019 at 12:35
4
Solved
Laravel 5.7 included "email verification" feature works well but not async email sending (during user register or resend link page) is not ideal.
Is there any way to send the email verification em...
Shuffle asked 4/10, 2018 at 10:52
2
I tried to install a package
composer require vinkla/instagram php-http/message php-http/guzzle6-adapter
I kept getting
Do not run Composer as root/super user! See https://getcomposer.org/ro...
Unbrace asked 4/2, 2019 at 15:2
1
Solved
I am implementing the following custom command for running a background processes:
namespace App\Console\Commands;
use App\Model\MyModel;
use Exception;
use Illuminate\Console\Command;
class MyC...
Chemotropism asked 20/8, 2019 at 8:7
3
Solved
I want to run a Laravel 5.7 application with Docker. My containers start OK but when I try to run the app in the browser I get an error.
There is no existing directory at
"/Users/user/project...
Morbific asked 23/10, 2018 at 22:30
3
Solved
I would like to customize the time users have to verify their email address that happens through the built in Auth (since 5.7).
In config/auth there is:
'passwords' => [
'users' => [
'pro...
Starstarboard asked 5/12, 2018 at 15:48
3
I have the functionality to import a very large amount of records around 5 million.
I have to make entries for related tables also simultaneously in the import process.
I have to make bunch inser...
Colleague asked 5/6, 2019 at 10:56
4
Solved
How would one do the following elegantly with laravel collections ?
Map the values of the $baseMap as keys to the collection.
The baseMap :
$baseMap = [
'name' => 'new_name',
'year' => '...
Bankston asked 29/5, 2019 at 12:16
2
I just installed Laravel Telescope which helps me a lot to debug the application. But at this time I want to delete all telescope data-cache and set as like fresh installation. Or is there any way ...
Northrop asked 23/1, 2019 at 20:56
1
I'm getting a file from storage using:
$image = Storage::get('test.jpg');
How can I get it's mime type?
I've tried:
$mime = Storage::mimeType($image);
With no luck.
I need the mime type so ...
Sharisharia asked 26/2, 2019 at 16:26
2
Solved
I'm currently learning Laravel and I'm creating a register form. When the form has errors I want to repopulate the input fields with their old values.
My form looks like this:
<form method="p...
Propitiate asked 23/4, 2019 at 14:27
1
I recently updated my project from Laravel 5.6 to 5.7 and added the email verification steps described by Laravel docs to my project.
Everything works great on my development machine (which is http...
Shurwood asked 26/9, 2018 at 20:59
2
I'm trying to inner join a users table to itself using an eloquent model. I've looked everywhere but can't seem to find a solution to this without creating two queries which is what I am currently ...
Aventine asked 12/3, 2019 at 2:14
2
Solved
I'm trying to include the Font Awesome toolkit in Laravel 5.7.
These are the steps I took:
1) Run npm install --save-dev @fortawesome/fontawesome-free
2) Check the folders in node_modules/...
Axletree asked 20/9, 2018 at 21:21
1
Solved
I am trying to upgrade my Laravel 5.5 project to 5.7. I use supervisor and before I was using configureMonologUsing() to generate the logs but apparently with 5.6 upgrade, it got depreciated. My fu...
Ottava asked 24/2, 2019 at 19:34
© 2022 - 2024 — McMap. All rights reserved.