yassineqoraiche

yassineqoraiche

Member Since 3 Years Ago

Experience Points
20,950
Total
Experience

4,050 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
192
Lessons
Completed
Best Reply Awards
1
Best Reply
Awards
  • start-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-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-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist 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 5
20,950 XP
Oct
28
3 weeks ago
Activity icon

Started a new Conversation Vuejs Draggable Sorted List

I'm using Vue.Draggable plugin to implement a draggable list, i'm passing a sorted computed property, like the following:

data(){

return {

 paymentMethods: [
        { name: 'stripe', Dindex: 0, state: 2 },
        { name: 'paypal', Dindex: 1 , state: 1 },
        { name: '2checkout', Dindex: 2, state: 4 },
        { name: 'cod', Dindex: 3, state: 3 }
   ],
}
}

computed: {

payments() {

       return _.sortBy(this.paymentMethods, 'state');
},
}

Draggable list:

<draggable :list="payments" class="payment-methods" tag="ul" @start="drag=true" @end="drag=false" @change="indexChanged">
   <li v-for="(method, index) in payments" :key="index">
        <!-- list data -->
   </li>
</draggable>

The problem here is the draggable list never works because i'm forcing the list sorting (using lodash _.sortBy), the question is how i can sort inside a draggable list.

Oct
20
4 weeks ago
Activity icon

Started a new Conversation Deploy Laravel Application To Heroku

Hello everyone,

I've successfully deployed a laravel application to heroku, but the problem is i can't publish a package inside it, for example i want to publis telescope package or Horizon so i can access it in production like so: heroku_app.com/telescope.

Oct
02
1 month ago
Activity icon

Started a new Conversation AppServiceProvider Vs Custom Provider

What is the difference between make a custom service provider or simply register it in the AppServiceProvider register method?

please be descriptive in your answer.

Thanks.

Sep
25
1 month ago
Jun
05
5 months ago
Activity icon

Replied to Mailable And Attach Full Path To File?

Try to use Storage::url('asamblea.pdf').

Activity icon

Replied to Mailable, Rendering And AJAX

You can use maileclipse - laravel mail editor to preview and edit your mailables:

https://maileclipse.io/

May
23
5 months ago
Activity icon

Replied to How To Override Application Config Values

@CRONIX - I'm working on a laravel package, so I register the global middleware using service provider:

public function boot()
    {
        Route::middlewareGroup('mypackagename', config('mypackagename.middleware', []));
.....

Then i set the middleware class in the package config file like this:

'middleware' => [
        'web',
        qoraiche\mypackagename\Http\Middleware\setConfigs::class
    ],

Middleware:

public function handle($request, Closure $next)
    {
        // --
        config(['mail.from.name' => 'New Name']);

        return $next($request);
    }

I do tests and the middleware registered correctly, but I still can't set config values in runtime.

the only thing that works for me is when i set config values in the service provider boot method.

Activity icon

Replied to How To Override Application Config Values

in your reply, you said that to set the MAIL_FROM_NAME i need to use this code:

config(['mail.from.name' => 'New Name']);

can you tell me where I need to put this code exactly in a middleware:

Just like this?

public function handle($request, Closure $next)
    {
        // --
        config(['mail.from.name' => 'New Name']);

        return $next($request);
    }
Activity icon

Replied to How To Override Application Config Values

@CRONIX - Thanks, but I try to set config values config(['key' => 'value']);using middleware before but i think i'm not doing it right, can you show me a simple example using middleware? i can handle the DB/Modal part.

Thanks again!

May
22
5 months ago
Activity icon

Replied to "Call To Undefined Method App\Console\Kernel::job()"

I think you should just use it like this:

protected function schedule(Schedule $schedule)
{
    $schedule->job(new ServerJob("hi"))->everyFiveMinutes();
}
Activity icon

Replied to Open An Registration Page In Specific Day

Probably you just need to get day name using carbon for example Carbon::now()->format( 'l' ); and check if it's Sunday then show registration form, else, return message "Sorry you can register only in Sunday", all this may be in a controller

Activity icon

Replied to Single Code Base - Multiple Projects

Personally, I think the best way is to use git workflow.

Activity icon

Replied to How Do You Handle SEO In Your Apps?

I recommend using seotools Laravel package:

Main features are:

  • Friendly Interface
  • Ease of set titles and meta tags
  • Ease of set metas for twitter and opengraph

https://github.com/artesaos/seotools

hope this helps.

Activity icon

Started a new Conversation How To Override Application Config Values

Hi, i'm developing a laravel package and i want to know what is the best way to override config values ? I want to save and update config values (eg MAIL_FROM_NAME, MAIL_FROM_ADDRESS) without editing config file directly (programmaticly). is that possible?

May
21
5 months ago
Activity icon

Replied to Laravel Premium Package

@CRONIX - Yes thank you!, that's what I need, but even if Satis only support static repository?

Activity icon

Replied to Laravel Premium Package

@tisuchi Generally, how to create a private package so only specific authentication method needed to install it

Activity icon

Replied to Laravel Premium Package

@TISUCHI - No, i think you don't understand me, I want to sell my premium laravel package to my users how i can provide them with a private composer package to install, so other public users can't install it until they pay!

Activity icon

Started a new Conversation Laravel Premium Package

How can I provide a premium package for my users like Laravel nova does, how to provide installation using private composer package ??