laravel-8 Questions
3
Solved
I have a problem with PHP intelephense, the method createToken is undefined. i don't know how to fix it. but when I run it in postman it works. i don't know why vscode doesnt recognize it. i also a...
Thompson asked 5/10, 2021 at 2:57
4
Solved
I am using laravel sanctum in my project, but I am facing a problem. I want to customize the 401 response code (unauthorized) to return a JSON when a token is invalid, something like this:
{
&quo...
Glare asked 25/7, 2021 at 7:0
4
Solved
I want to create a new Laravel 8 project and I followed the documentation with docker and Sail on Windows: https://laravel.com/docs/8.x#getting-started-on-windows
After I installed everything, I tr...
Milkfish asked 29/5, 2021 at 17:14
4
Solved
Laravel 8 makes it possible to create custom Validation rules: https://laravel.com/docs/8.x/validation#custom-validation-rules
php artisan make:rule Euro
But then you have to pass the rule as a obj...
Lumbricalis asked 25/8, 2021 at 11:29
3
Solved
I have a Laravel environment running on Docker via Sail on Mac OS X Big Sur. I added a phpmyadmin to my docker-compose.yml file and it's all working, but when I try to import my data to the databas...
Kenwood asked 1/6, 2022 at 18:4
2
Solved
Issue:
So whenever I click the HTML button that activates the Javascript code, I get an error in the console stating:
POST http://127.0.0.1:8000/payment 419 (unknown status)
What I have tried
I hav...
Written asked 26/11, 2020 at 1:4
3
Hello $data = User::paginate(5); return view('users',compact('data')); {!! $data->links() !!}
Noh asked 22/4, 2021 at 9:28
4
Solved
I get a "419 (unknown status)" error with the message "CSRF token mismatch."
POST http://127.0.0.1:8000/login 419 (unknown status)
CSRF token mismatch.
Laravel server : http://1...
Lenhard asked 21/8, 2021 at 19:22
7
Solved
I'm having some trouble getting authentication working 100% in Laravel (all views seem to work so far except for "home") and was hoping to get some assistance from the Laravel experts out...
Edom asked 8/11, 2020 at 4:13
24
Solved
I would like to create helper functions to avoid repeating code between views in Laravel. For example:
view.blade.php
<p>Foo Formated text: {{ fooFormatText($text) }}</p>
They're basic...
Solipsism asked 3/2, 2015 at 2:25
6
I'm trying to deploy Laravel 8 project in Vercel, however, I am constantly facing this error:
Error: No Output Directory named "dist" found after the Build
completed. You can configure t...
Braise asked 29/9, 2022 at 7:41
6
Solved
I installed Laravel 8 with Jetstream authentication. Now I want to change the login components, specifically the logo. Where are these components placed?
Letterpress asked 27/9, 2020 at 19:23
5
I have updated my system to PHP 8.1 (XAMPP).
Now I have the problem that when I enter the command "php artisan serve" I get the following error message:
Opis\Closure\SerializableClosure i...
Rosiorosita asked 11/1, 2022 at 14:14
6
Solved
The website my groupmates and I are working on is only locally available on my laptop. I want them to be able to open the website from their own homes, so that my frontend-focused members may edit ...
5
Solved
Hi I've just tried and to install Laravel 8 with sail and I've run into a problem
What I've done is to first run the curl one-liner from laravel's own page
curl -s https://laravel.build/sail-test |...
Watersick asked 12/12, 2020 at 17:9
5
I've created an authentication controller using laravel passport, but the result is not what it usually is. variable $token = $user->createToken('TestApp')->accessToken; does not generate tok...
Excitor asked 22/9, 2021 at 9:9
8
Solved
Nothing to install, update or remove
Generating optimized autoload files
Class App\Helpers\Helper located in C:/wamp64/www/vuexylaravel/app\Helpers\helpers.php does not comply
with psr-4 autoloadi...
4
Solved
I want to pass an id from the web.php routes of my Laravel site and I receive error.
Here is my web.php:
Route::get('/member/{member}/show', [MemberController::class, 'show'])->name('member.show...
4
Solved
This is my directory structure.
-resources
-css
-mycss.css
-js
-myjs.js
-myimagesfolder
-views
-admin
-home.blade.php
how can i access resources>css>mycss.css , resources>js>my...
2
Solved
Your requirements could not be resolved to an installable set of packages.
Problem 1
phpunit/phpunit[dev-master, 9.3.3, ..., 9.4.x-dev] require ext-dom * -> it is missing from your system. Inst...
2
Getting msg as "cmdlet Invoke-WebRequest at command pipeline position 1 Supply values for the following parameters: Uri:" when installing Laravel with docker. I used the command curl -s h...
11
Does anyone have an idea why it throws the following error and how to fix it? I have also tried to reinstall all packages using npm install several times. Reinstalling NodeJS on Windows didn't work...
Malocclusion asked 14/1, 2021 at 11:46
5
Solved
I am unable Model Factory in Laravel Tinker.
//ItemFactory.php
class ItemFactory extends Factory
{
/**
* The name of the factory's corresponding model.
*
* @var string
*/
protected $model = I...
10
Solved
I get the title error when I run command:
php artisan db:seed
My screenshot:
I have no idea where this problem comes from. I was searching for code examples and solution but I haven't found anyth...
8
Solved
I am getting this error in my domain where I have used laravel v8 for my site.
It shows error in line no 52 in index file:
Previously my .env file was not reading. As soon as I fixed that error ...
1 Next >
© 2022 - 2024 — McMap. All rights reserved.