wd

wd

Member Since 10 Months Ago

Experience Points
680
Total
Experience

4,320 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
2
Lessons
Completed
Best Reply Awards
0
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 1
680 XP
Oct
02
3 weeks ago
Activity icon

Replied to Login And Register URL

@laracoft thanks but it doesn't work with laravel 8

Activity icon

Replied to Login And Register URL

what do you advise me?

Activity icon

Replied to Login And Register URL

sorry I forgot to mention that I use LARAVEL 8

Activity icon

Started a new Conversation Login And Register URL

Hi, I'm currently setting up a site with an administrator part and my concern is how to change the name of my URLs (/login,/register), because LARAVEL is popular and a foreign person can access it if he knows the way. thanks

Sep
24
1 month ago
Activity icon

Started a new Conversation Installation Failed, Reverting ./composer.json To Its Original Content

Hi, I would like to install the package spatie/laravel-newsletter on my version of LARAVEL 7, but I encounter the following error :Installation failed, reverting ./composer.json to its original content.

` Installation failed, reverting ./composer.json to its original content.

[Seld\JsonLint\ParsingException] "./composer.lock" does not contain valid JSON Parse error on line 2145: 3:26+00:00" ---------------------^ Expected one of: 'EOF', '}', ':', ',', ']' `

Sep
16
1 month ago
Activity icon

Replied to Laravel Errors Controller

thank you for your answer, but I want to automatically redirect to my custom view (404) if the route does not exist

Sep
15
1 month ago
Activity icon

Started a new Conversation Laravel Errors Controller

hi everyone I want to customize the laravel error system (400 and 500). but I do not know where the controller is. thank you

Jul
25
3 months ago
Activity icon

Started a new Conversation Image Polymorphic Laravel

Hi, I'm using polymorphic relationships right now, but I have a problem with the store. Indeed I wish to link an image to a service, here is my code:

attachments table

        Schema::create('attachments', function (Blueprint $table) {
            $table->id();
            $table->string('name');
            $table->morphs('attachable');
            $table->timestamps();
        });

services table

  Schema::create('services', function (Blueprint $table) {
            $table->id();
            $table->string('name');
            $table->string('description');
            $table->unsignedBigInteger('user_id')->index()->nullable();
            $table->foreign('user_id')->references('id')->on('users')->onDelete('set null');
            $table->timestamps();
        });

Attachment model

 public function attachable()
    {
        return $this->morphTo();
    }

Service model

 public function attachables()
    {
        return $this->morphMany(Attachment::class, 'attachable');
    }

ServicesController

 public function store(Request $request)
    {
        //

        $this->validate($request, [
            'name' => 'required',
            'description' => 'required|min:10',
            'img' => 'image'
        ]);

        $data = $request->all();

        Service::create($data);
        return back();
    }
Jul
20
3 months ago
Activity icon

Started a new Conversation Efficient Query Method LARAVEL

Hi, I am currently building an e-commerce site and I would like to display a product preview by category through queries in my Controller. But after realization I find myself with too many requests that make the page change slow. I would like to know if there is not a more efficient method. here is my code :

 public function index()
    {
      

        //for phone
        $phones = Product::with(['poster'])->where('category_id', 1)->get();

        //for bag
        $bags = Product::with(['poster'])->where('category_id', 2)->get();

        $produits = Product::with(['poster'])->where('category_id', 3)->get();

        //for games
        $games = Product::with(['poster'])->where('category_id', 4)->get();


        return view('guest.pages.index', compact(
            'phones',
            'bags',
            'games'
        ));
    }
May
20
5 months ago
Activity icon

Replied to Missing Required Parameters For [Route: Package.index] [URI: Package/{package}]. (View: F:\projets\sprounivers\resources\views\guest\index.blade.php)

controller

public function package_choice(Package $package)
    {

        return view('users.package.index',['package'=>$package]);
    }

root

Route::get("/package/{package}", "User\[email protected]_choice")->name('package.index');

view

 <div class="price-footer">
   <a class="button smsContactModal" href="{{route('package.index',$package->id)}}" data-type="{{$package->libelle}}">J'ACHETE</a>
  </div>

Activity icon

Started a new Conversation Missing Required Parameters For [Route: Package.index] [URI: Package/{package}]. (View: F:\projets\sprounivers\resources\views\guest\index.blade.php)

Hello, Im getting this error,

ErrorException thrown with message "Missing required parameters for [Route: package.index] [URI: package/{package}]. (View: F:\projets\sprounivers\resources\views\guest\index.blade.php)"