Neeraj1005

Neeraj1005

Member Since 1 Year Ago

Experience Points
28,750
Total
Experience

1,250 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
134
Lessons
Completed
Best Reply Awards
1
Best Reply
Awards
  • start your engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-in-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 6
28,750 XP
Sep
18
1 day ago
Activity icon

Replied to Which Package Development Course Is Good For Laravel?

@automica These are also paid in this Laracast. And I haven't take Laracast subscription yet

https://laracasts.com/series/building-laracasts/episodes/3

I will check this package also.

https://github.com/Jeroen-G/laravel-packager

Activity icon

Started a new Conversation Which Package Development Course Is Good For Laravel?

Hello, Laravel devs! I need your suggestion, basically, I searched/google a course for Laravel package development and I found a two paid course. Those are:

Can anyone suggest which would be good for starting and should I buy. Basically both creator are awesome. Now it is hard select which one....

Purchasing two courses is not possible.

Sep
14
5 days ago
Activity icon

Awarded Best Reply on Target Class [CarrierController] Does Not Exist.

@eliasniyonsaba If you are using Laravel8 do this.

To App/Providers/RouteServiceProvider.php add $namespace

class RouteServiceProvider extends ServiceProvider
{
    /**
     * This namespace is applied to your controller routes.
     *
     * In addition, it is set as the URL generator's root namespace.
     *
     * @var string
     */
    protected $namespace = 'App\Http\Controllers';
}

and this

/**
 * Define your route model bindings, pattern filters, etc.
 *
 * @return void
 */
public function boot()
{
    $this->configureRateLimiting();

    $this->routes(function () {
        Route::middleware('web')
            ->namespace($this->namespace) // add this line
            ->group(base_path('routes/web.php'));

        Route::prefix('api')
            ->middleware('api')
            ->namespace($this->namespace) // and this line
            ->group(base_path('routes/api.php'));
    });
}
Sep
11
1 week ago
Activity icon

Replied to BadMethodCallException Method Illuminate\Validation\Validator::validateName Does Not Exist.

@lara_garbage

'name' => Rule::unique('users')->ignore(auth()->id()),

Using this it send an error. But the main problem was id we just have to figureout this method $this->id

Activity icon

Replied to BadMethodCallException Method Illuminate\Validation\Validator::validateName Does Not Exist.

@lara_garbage @sarwarahmed

problem solved.

Both method are working $this->auth_profile->id instead of this $this->id. Basically here auth_profile is the wildcard name of your route or the wildcard variable you have used in your method.

Routes are

 Route::resource('auth_profile', 'UserProfileController');

# so wildcard route would be auth_profile/{auth_profile}

Request file

 'name' => [
                 'required',
                Rule::unique('users')->ignore(Auth::user()->id),
             ],

# OR
'name' => 'required|unique:users,name,'.$this->auth_profile->id,

in controller update method

public function update(UpdateProfileInfoRequest $request, User $auth_profile){
	// your statement
}
Activity icon

Replied to BadMethodCallException Method Illuminate\Validation\Validator::validateName Does Not Exist.

@lara_garbage Not working

 'name' => [
              'required',
            Rule::unique('users')->ignore($this->id),
            ],
Activity icon

Replied to BadMethodCallException Method Illuminate\Validation\Validator::validateName Does Not Exist.

@lara_garbage right what? I think it is right but the name field for updating causes problem

    public function rules()
    {
        return [
            'name' => 'required|name|unique:users,name,'.$this->id,
            'firstname' => 'required|max:75',
            'lastname' => 'required|max:75',
            //'email' => 'required|email|unique:users,email,'.$this->id
            'mobile_number' => 'string|size:10',
            'address' => 'string|max:255',
            'description' => 'string',
            'profile_photo_path' => 'image|mimes:jpeg,bmp,svg,jpg,png|max:512',
        ];
    }
Activity icon

Replied to How To Storage Upload An Image And Save In Database?

@oxbir Try this and let me know

    if ($request->hasFile('image')) {
	$originalname = $request->image->getClientOriginalName();

        $extension = $request->image->extension();

        $uploadpath = $request->image->storeAs('images/categories', $originalname, 'public');
    }
Category::create([
        'name' => $request->name,
        'latin' => $request->latin,
        'parent_id' => $request->parent_id,
        'image' => $originalname,
    ]);
    return redirect()->route('categories.index');
Activity icon

Replied to BadMethodCallException Method Illuminate\Validation\Validator::validateName Does Not Exist.

@lara_garbage

yea right there is no name validation rule

how to solve this? do you have any idea?

Activity icon

Replied to BadMethodCallException Method Illuminate\Validation\Validator::validateName Does Not Exist.

@sarwarahmed the validation error is returned in this case

The name has already been taken.
Activity icon

Replied to Target Class [CarrierController] Does Not Exist.

@eliasniyonsaba If you are using Laravel8 do this.

To App/Providers/RouteServiceProvider.php add $namespace

class RouteServiceProvider extends ServiceProvider
{
    /**
     * This namespace is applied to your controller routes.
     *
     * In addition, it is set as the URL generator's root namespace.
     *
     * @var string
     */
    protected $namespace = 'App\Http\Controllers';
}

and this

/**
 * Define your route model bindings, pattern filters, etc.
 *
 * @return void
 */
public function boot()
{
    $this->configureRateLimiting();

    $this->routes(function () {
        Route::middleware('web')
            ->namespace($this->namespace) // add this line
            ->group(base_path('routes/web.php'));

        Route::prefix('api')
            ->middleware('api')
            ->namespace($this->namespace) // and this line
            ->group(base_path('routes/api.php'));
    });
}
Activity icon

Replied to Target Class [CarrierController] Does Not Exist.

@eliasniyonsaba which version of laravel do you use? is 8 ?

Activity icon

Started a new Conversation BadMethodCallException Method Illuminate\Validation\Validator::validateName Does Not Exist.

Basically I'm trying to update profile information but if there is already username available then validation is not requied but when I try submit the form it throw and validation error. can anyone tell me what wrong with this rule. This is my validation rule....

<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class UpdateProfileInfoRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'name' => 'required|name|unique:users,name,'.$this->id,
            'firstname' => 'required|max:75',
            'lastname' => 'required|max:75',
            //'email' => 'required|email|unique:users,email,'.$this->id
            'mobile_number' => 'string|size:10',
            'address' => 'string|max:255',
            'description' => 'string',
            'profile_photo_path' => 'image|mimes:jpeg,bmp,svg,jpg,png|max:512',
        ];
    }
}

***Both name and email part is send an validation error.

Activity icon

Started a new Conversation ErrorException Unresolvable Dependency Resolving [Parameter #0 [ <required> $auth_profile ]] In Class App\View\Components\userprofile\profileInfo (View: C:\laragon\www\acl\resources\views\userprofile\profile-page.blade.php) Http://acl.test/auth_profile/1/

In my project, I'm using the component, This time I pass the variable correctly but I don't know why this error occurs?

COntroller methods

   public function show(User $auth_profile)
    {
        return view('userprofile.profile-page', compact('auth_profile'));
    }

blade file resources/views/userprofile/profile-page.blade.php

   <h1 class="h3 mb-3">Profile Information</h1>

    <div class="row">

        <div class="col-md-5 col-xl-4">

            <x-userprofile.profile-info :auth_profile="$auth_profile" />

        </div> <!-- end col-md-5 col-xl-4 -->

component file resources/views/components/userprofile/profile-info.php

    <div class="card-box text-center">
        <img src="{{ $auth_profile->profile_photo_url }}" class="rounded-circle avatar-xl img-thumbnail" alt="profile-image">

        <h4 class="text-muted">{{ $auth_profile->full_name }}</h4>

        {{-- <button type="button" class="btn btn-success btn-xs waves-effect mb-2 waves-light">Follow</button>
        <button type="button" class="btn btn-danger btn-xs waves-effect mb-2 waves-light">Message</button> --}}

        <div class="text-left mt-3">

            @if($auth_profile->description)

            <h4 class="font-13 text-uppercase">{{ __('About Me :') }}</h4>

            <p class="text-muted font-13 mb-3">
                {{ $auth_profile->description ?? '' }}
            </p>
            @endif

            <p class="text-muted mb-2 font-13"><strong>Full Name :</strong> <span class="ml-2">{{ $auth_profile->full_name }}</span></p>

            <p class="text-muted mb-2 font-13"><strong>Mobile :</strong><span class="ml-2">{{ $auth_profile->mobile_number ?? '' }}</span></p>

            <p class="text-muted mb-2 font-13"><strong>Email :</strong> <span class="ml-2 ">{{ $auth_profile->email }}</span></p>

            {{-- <p class="text-muted mb-1 font-13"><strong>Location :</strong> <span class="ml-2">USA</span></p> --}}
        </div>

ANd this is the component class

<?php

namespace App\View\Components\userprofile;

use Illuminate\View\Component;

class profileInfo extends Component
{
    public $auth_profile;

    /**
     * Create a new component instance.
     *
     * @return void
     */
    public function __construct($auth_profile)
    {
        $this->auth_profile = $auth_profile;
    }

    /**
     * Get the view / contents that represent the component.
     *
     * @return \Illuminate\View\View|string
     */
    public function render()
    {
        return view('components.userprofile.profile-info');
    }
}

Routes

 Route::resource('auth_profile', 'UserProfileController');

@michaloravec @Sinnbeck could you please tell me this what I did wrong?

Activity icon

Replied to Laravel 8 Jetstream Login Route

@gerrardarya check laravel/fortify package https://github.com/laravel/fortify/blob/1.x/routes/routes.php And change accordingly to you. Because Laravel8 uses the fortify and jetstream

Activity icon

Started a new Conversation Undefined Variable: Profileinfo (View: C:\laragon\www\acl\resources\views\components\auth-user-info.blade.php) (View: C:\laragon\www\acl\resources\views\components\auth-user-info.blade.php)

In my project, I have just passed the variable in blade compoent like this controller

    public function index()
    {
        $profileinfo = Auth::user();

        return view('userprofile.profile-page', compact('profileinfo'));
    }

blade resources\views\userprofile\profile-page.blade.php

<div class="container">

    <h1 class="h3 mb-3">Profile Information</h1>

    <div class="row">

        <div class="col-md-5 col-xl-4">

            <x-auth-user-info :profileinfo="$profileinfo" />

        </div> <!-- end col-md-5 col-xl-4 -->
</div>

and this is the component resources\views\components\auth-user-info.blade.php

<div>
    <div class="card-box text-center">
        <img src="{{ $profileinfo->profile_photo_url }}" class="rounded-circle avatar-xl img-thumbnail" alt="profile-image">
</div>
</div>

can anyone tell me why this throw an error. did i something wrong in component?

Sep
10
1 week ago
Activity icon

Replied to Make:auth ?

can someone slow down the version upgrade???

😂😂😂😂

Activity icon

Replied to Laravel 8 Error: Target Class [HomeController] Does Not Exist

@felloz ohhh, we missed this part. As defined in the previous version...

->namespace($this->namespace)

glad you solved this :)

Edited

In RouteServiceProvider just adding these values

protected $namespace = 'App\Http\Controllers'; # add this


public function boot()
{
    $this->configureRateLimiting();

    $this->routes(function () {
        Route::middleware('web')
            ->namespace($this->namespace) # add this
            ->group(base_path('routes/web.php'));

        Route::prefix('api')
            ->middleware('api')
            ->group(base_path('routes/api.php'));
    });
}

Activity icon

Replied to Laravel 8 Error: Target Class [HomeController] Does Not Exist

@felloz I think, Starting new project with laravel8 is good but somewhere upgrading old laravel project into 8 is much confusing because in laravel8 most of the part is changed...

Activity icon

Replied to Laravel 8 Error: Target Class [HomeController] Does Not Exist

@felloz

just change this into this

<?php

use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route; 
use App\Http\Controllers\HomeController; # don't forgot to add this

Route::get('/', function () {
    return view('welcome');
});

Auth::routes();

Route::get('/home', [HomeController::class, 'index']);
Activity icon

Replied to Laravel 8 Error: Target Class [HomeController] Does Not Exist

@felloz In laravel8 defining the routing is little bit changed: check documentation https://laravel.com/docs/8.x/routing#basic-routing

#In the previous version of laravel

<?php
Route::resource('home', 'HomeController'); // It is okkk

# In laravel 8 you have to define route like this

<?php

use App\Http\Controllers\HomeController; 


Route::resource('home', HomeController::class);

and you can also use this technique as @michaloravec discussed yet

To App/Providers/RouteServiceProvider.php add $namespace

Activity icon

Replied to How To Upload And Save Image File?

@oxbir can you put your blade file and route? did you try just dd() you image file?

Activity icon

Started a new Conversation Photo Update, Removing Previous/old Photo

In my laravel project for uploading the file I'm using the spatie media library package. But using this I'm facing the problem with updating the image. Basically for updating the image, when I upload the new image I want to remove old or previous image if post having the image. But in case it store as new image. can anyone knows how to do this update image and remove previous image using spatie media lib pkg? This is my update method

  public function update(PostStoreRequest $request, Post $post)
    {
        $input = $request->validated();

        $post->update($input);

        $post->tags()->sync(request('tags'));

        if($request->hasFile('featuredimage')){
            $post->addMedia($request->featuredimage)->toMediaCollection('posts');
        }

        return redirect(route('posts.index'))->withInfo('Posts updated succesfully');
    }
Activity icon

Started a new Conversation Artisan Command For Clear All File In Storage

In Laravel is there any command or shorter way to delete storage file instead of manually deleting directory?

Aug
25
3 weeks ago
Activity icon

Replied to How Laravel Chunks Magic Methods Works?

@sinnbeck

No you normally wouldn't want to load all million rows in a Http request. It is not to be used for displaying things. Use limit it pagination for that

So where can I used this chunk method usually?

Activity icon

Replied to How Laravel Chunks Magic Methods Works?

@sinnbeck

What are you trying to do with the chunk method? Get the first 10 records from the database?

basically I try to understan how can I fetch the records in view if I have millions of data in datatable. Then how it will works.

So here I tried some little experiments with chunk how it works.

$allCategory = Category::latest()->limit(10)->get(); And I'm trying to fetch the record instead of above code.

@michaloravec

This method is very useful for writing Artisan commands that process thousands of records.

what is that means? So I can't used this chunk method for fetch data?

Activity icon

Replied to How Laravel Chunks Magic Methods Works?

@braunson no I don't want to use this. This is my actual query

 public function index()
    {

        DB::table('categories')->orderBy('id')->chunk(10, function ($allCategory) {
            // foreach ($allCategory as $cat) {
            //     dd($cat);
            // }
            return view('cms.categories.index',compact('allCategory'));
        });


    }
Activity icon

Started a new Conversation How Laravel Chunks Magic Methods Works?

basically i tried to understand how chunk methods works. can anyone tells me how it is works. I'm trying to fetch all record in my view blade but it returns nothing how to pass that chunk variable to blade?

 public function index()
    {
        // $allCategory = Category::latest()->get();

        DB::table('categories')->orderBy('id')->chunk(10, function ($allCategory) {
            // foreach ($allCategory as $cat) {
            //     dd($cat);
            // }
            // dd($allCategory);
            return view('cms.categories.index',compact('allCategory'));
        });


    }

what I'm doing wrong can anyone explain me how to pass variable in blade or how to do this?

Aug
23
3 weeks ago
Activity icon

Replied to Spatie MediaLibrary Default Storage Depending On The Model

@madsynn @gcwilliams you forgot about storage link symlink

public_path('posts') => storage_path('app/posts'),

And run php artisan storage:link

Activity icon

Replied to BadMethodCallException Call To Undefined Method Illuminate\Database\Eloquent\Builder::getMedia()

@sinnbeck basically I saw someone projects on github quickadminpanel and follow same as he done, then it works 😜. @sinnbeck Now I'm stuck in update part instead of addMedia how can I update the media?

Activity icon

Awarded Best Reply on BadMethodCallException Call To Undefined Method Illuminate\Database\Eloquent\Builder::getMedia()

@sinnbeck Hello sir, now Here I put the code how I solved this problem now: First in my Posts model I uses a accessor technique check this code

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Spatie\MediaLibrary\HasMedia;
use Spatie\MediaLibrary\InteractsWithMedia;

class Post extends Model implements HasMedia
{
    use SoftDeletes, InteractsWithMedia;

    protected $fillable = ['user_id','category_id','title','slug','body','subcategory_id'];

    protected $appends = [
        'featured_image',
    ];

    protected $table = 'posts';

    protected $with = ['user'];

    public function getFeaturedImageAttribute() {

       return $this->getMedia('posts')->last();
    }
}

Then in index.blade.php i simply call the getURL

@if($post->post_file)
   <img src="{{ $post->featured_image->getUrl()}}" alt="">
@endif

Now its working.

Activity icon

Replied to BadMethodCallException Call To Undefined Method Illuminate\Database\Eloquent\Builder::getMedia()

@sinnbeck Hello sir, now Here I put the code how I solved this problem now: First in my Posts model I uses a accessor technique check this code

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Spatie\MediaLibrary\HasMedia;
use Spatie\MediaLibrary\InteractsWithMedia;

class Post extends Model implements HasMedia
{
    use SoftDeletes, InteractsWithMedia;

    protected $fillable = ['user_id','category_id','title','slug','body','subcategory_id'];

    protected $appends = [
        'featured_image',
    ];

    protected $table = 'posts';

    protected $with = ['user'];

    public function getFeaturedImageAttribute() {

       return $this->getMedia('posts')->last();
    }
}

Then in index.blade.php i simply call the getURL

@if($post->post_file)
   <img src="{{ $post->featured_image->getUrl()}}" alt="">
@endif

Now its working.

Activity icon

Replied to BadMethodCallException Call To Undefined Method Illuminate\Database\Eloquent\Builder::getMedia()

@sinnbeck I want image for all posts. In this method How to put this?

   public function index()
    {
        $query = Post::query()->getMedia('posts');

        if(auth()->user()->hasRole('superadmin')) {
            $allPosts = $query->has('user')->latest()->get();

        } elseif (auth()->user()->hasRole('admin')) {
            $allPosts = $query->whereHas('user', function($query){
                $query->where('user_id','!=',1);
            })->latest()->get();

        } else {
            $allPosts = $query->whereHas('user', function($query){
                $query->where('user_id',auth()->user()->id);
            })->latest()->get();
        }
        return view('cms.posts.index',compact('allPosts'));
    }
Activity icon

Replied to BadMethodCallException Call To Undefined Method Illuminate\Database\Eloquent\Builder::getMedia()

@sinnbeck here it is

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Spatie\MediaLibrary\HasMedia;
use Spatie\MediaLibrary\InteractsWithMedia;

class Post extends Model implements HasMedia
{
    use SoftDeletes, InteractsWithMedia;

    protected $fillable = ['user_id','category_id','title','slug','body','subcategory_id'];

    protected $with = ['user'];

    public function category()
    {
        return $this->belongsTo( Category::class );
    }

    public function subcategory()
    {
        return $this->belongsTo( Subcategory::class );
    }

    public function tags()
    {
        return $this->belongsToMany( Tag::class );
    }

    public function user() {
        return $this->belongsTo( User::class );
    }
}

Activity icon

Replied to BadMethodCallException Call To Undefined Method Illuminate\Database\Eloquent\Builder::getMedia()

@sinnbeck If I do this

$query = Post::getMedia('posts');

Then this error comes

ErrorException
Non-static method App\Post::getMedia() should not be called statically

Did you follow this guide to setup the model (add the trait)

Yes I followed Image store part is working properly

Activity icon

Replied to BadMethodCallException Call To Undefined Method Illuminate\Database\Eloquent\Builder::getMedia()

@automica in index method

$query = Post::query()->getMedia('posts');

index.blade.php

@forelse($allPosts as $post)
                                    <tr>
                                        <td>
                                            <img src="{{$post->getUrl('posts')}}" alt="">
Activity icon

Started a new Conversation BadMethodCallException Call To Undefined Method Illuminate\Database\Eloquent\Builder::getMedia()

This is my controller index method

   public function index()
    {
        $query = Post::query()->getMedia('posts');

        if(auth()->user()->hasRole('superadmin')) {
            $allPosts = $query->has('user')->latest()->get();

        } elseif (auth()->user()->hasRole('admin')) {
            $allPosts = $query->whereHas('user', function($query){
                $query->where('user_id','!=',1);
            })->latest()->get();

        } else {
            $allPosts = $query->whereHas('user', function($query){
                $query->where('user_id',auth()->user()->id);
            })->latest()->get();
        }
        return view('cms.posts.index',compact('allPosts'));
    }

This is my store method for medialib

   public function store(PostStoreRequest $request)
    {
        $input = $request->validated();
        // dd($input);
        $posts = auth()->user()->posts()->create($input);

        $posts->tags()->attach(request('tags'));

        if($request->hasFile('featuredimage')){

            $posts->addMedia($request->featuredimage)
                    ->toMediaCollection('posts');

        }

        return redirect(route('posts.index'))->withMessage('post 😊 created successfully');
    }

WHERE DID MAKE A MISTAKE OR SOMETHING DID I WRONG?

Activity icon

Replied to Conclusion: Don't Install Spatie/laravel-medialibrary 8.0.6|remove Symfony/process V5.1.3|install Symfony/process 3.0.x-dev|

@sinnbeck yes I found this under php.ini and enable. And also I found a post on it https://github.com/UniSharp/laravel-filemanager/wiki/Enabling-exif-extension-for-PHP. Now medialibrary is installed. I have one question regarding this

#what this mean below

spatie/laravel-medialibrary suggests installing php-ffmpeg/php-ffmpeg (Required for generating video thumbnails)
spatie/laravel-medialibrary suggests installing spatie/pdf-to-image (Required for generating thumbsnails of PDFs and SVGs)
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating optimized autoload files

should I have to installed these also or forgot it because In my project I just simple want to image upload or nothting else

Edited:

# enable these two extension in your php.ini file
extension=mbstring
extension=exif 
Activity icon

Replied to Conclusion: Don't Install Spatie/laravel-medialibrary 8.0.6|remove Symfony/process V5.1.3|install Symfony/process 3.0.x-dev|

@sinnbeck I never install package in laragon or xampp can you tell me how to do this in xampp then I will do same in laragon.

Activity icon

Replied to Conclusion: Don't Install Spatie/laravel-medialibrary 8.0.6|remove Symfony/process V5.1.3|install Symfony/process 3.0.x-dev|

@sinnbeck .ini file is same for both xampp or laragon what extension should I have to enable? I did not find any php_exif under .ini file

Activity icon

Replied to Conclusion: Don't Install Spatie/laravel-medialibrary 8.0.6|remove Symfony/process V5.1.3|install Symfony/process 3.0.x-dev|

@sinnbeck laragon and I'm using the php 7.4

C:\laragon\www\acl (master)
λ php -v
PHP 7.4.8 (cli) (built: Jul  9 2020 11:30:39) ( ZTS Visual C++ 2017 x64 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
Activity icon

Replied to Conclusion: Don't Install Spatie/laravel-medialibrary 8.0.6|remove Symfony/process V5.1.3|install Symfony/process 3.0.x-dev|

@sinnbeck same error. I put some half errors

λ composer require "spatie/laravel-medialibrary:^8.5"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - spatie/image 1.7.6 requires ext-exif * -> the requested PHP extension exif is missing from your system.
    - spatie/image 1.7.5 requires ext-exif * -> the requested PHP extension exif is missing from your system.
    - spatie/image 1.7.4 requires ext-exif * -> the requested PHP extension exif is missing from your system.
    - spatie/image 1.7.3 requires ext-exif * -> the requested PHP extension exif is missing from your system.
    - spatie/image 1.7.2 requires ext-exif * -> the requested PHP extension exif is missing from your system.
    - spatie/image 1.7.1 requires ext-exif * -> the requested PHP extension exif is missing from your system.
    - spatie/image 1.7.0 requires ext-exif * -> the requested PHP extension exif is missing from your system.
    - spatie/image 1.6.0 requires ext-exif * -> the requested PHP extension exif is missing from your system.
    - spatie/image 1.5.3 requires ext-exif * -> the requested PHP extension exif is missing from your system.
    - Conclusion: remove symfony/console v5.1.3
    - Conclusion: don't install symfony/console v5.1.3
    - spatie/image 1.4.0 requires symfony/process ^3.0 -> satisfiable by symfony/process[3.0.x-dev, 3.1.x-dev, 3.2.x-dev, 3.3.x-dev, 3.4.x-dev, v3.0.0, v3.0.0-BETA1, v3.0.1, v3.0.2, v3.0.3, v3.0.4, v3.0.5, v3.0.6, v3.0.7, v3.0.8, v3.0.9, v3.1.0, v3.1.0-BETA1, v3.1.0-RC1, v3.1.1, v3.1.10, v3.1.2, v3.1.3, v3.1.4, v3.1.5, v3.1.6, v3.1.7, v3.1.8, v3.1.9, v3.2.0, v3.2.0-BETA1, v3.2.0-RC1, v3.2.0-RC2, v3.2.1, v3.2.10, v3.2.11, v3.2.12, v3.2.13, v3.2.14, v3.2.2, v3.2.3, v3.2.4, v3.2.5, v3.2.6, v3.2.7, v3.2.8, v3.2.9, v3.3.0, v3.3.0-BETA1, v3.3.0-RC1, v3.3.1, v3.3.10, v3.3.11, v3.3.12, v3.3.13, v3.3.14, v3.3.15, v3.3.16, v3.3.17, v3.3.18, v3.3.2, v3.3.3, v3.3.4, v3.3.5, v3.3.6, v3.3.7, v3.3.8, v3.3.9, v3.4.0, v3.4.0-BETA1, v3.4.0-BETA2, v3.4.0-BETA3, v3.4.0-BETA4, v3.4.0-RC1, v3.4.0-RC2, v3.4.1, v3.4.10, v3.4.11, v3.4.12, v3.4.13, v3.4.14, v3.4.15, v3.4.16, v3.4.17, v3.4.18, v3.4.19, v3.4.2, v3.4.20, v3.4.21, v3.4.22, v3.4.23, v3.4.24, v3.4.25, v3.4.26, v3.4.27, v3.4.28, v3.4.29, v3.4.3, v3.4.30, v3.4.31, v3.4.32, v3.4.33, v3.4.34, v3.4.35, v3.4.36, v3.4.37, v3.4.38, v3.4.39, v3.4.4, v3.4.40, v3.4.41, v3.4.42, v3.4.43, v3.4.5, v3.4.6, v3.4.7, v3.4.8, v3.4.9].
Activity icon

Replied to Conclusion: Don't Install Spatie/laravel-medialibrary 8.0.6|remove Symfony/process V5.1.3|install Symfony/process 3.0.x-dev|

@sinnbeck I run this command from documentation

composer require "spatie/laravel-medialibrary:^8.0.0"

Okk I'll try this one also

composer require spatie/laravel-medialibrary:^8.5

Activity icon

Replied to Conclusion: Don't Install Spatie/laravel-medialibrary 8.0.6|remove Symfony/process V5.1.3|install Symfony/process 3.0.x-dev|

@sinnbeck In laravel 7.0+ require symphony 5. So it is good to install lower version for laravel7? ANd what this mean? what I have to check in ini file

To enable extensions, verify that they are enabled in your .ini files:

Activity icon

Replied to Conclusion: Don't Install Spatie/laravel-medialibrary 8.0.6|remove Symfony/process V5.1.3|install Symfony/process 3.0.x-dev|

@sinnbeck

           "require": {
                "symfony/process": "^5.0",
            },
"conflict": {
                "symfony/process": "<4.4"
            },
"require-dev": {
                "symfony/process": "^4.4|^5.0",
            },