enthusiast14

Member Since 7 Months Ago

Experience Points
1,480
Total
Experience

3,520 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
10
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.

  • Community Pillar

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

Level 1
1,480 XP
Apr
02
1 week ago
Activity icon

Replied to How To Install A Custom Package When It Is Not Hosted In Any Sites

@bugsysha not gonna spend money. @martinbean seems ok, searching examples, if you have let me know. @snapey how can i have private repositories?

Activity icon

Started a new Conversation How To Install A Custom Package When It Is Not Hosted In Any Sites

Hi Experts,

I want to build laravel package and from time to time it will have new features (updates), so is it will be versioned. But my package will not be added in https://packagist.org/ and github.com because my package will not be free, i will manually give them the package zip to install it in their laravel site.

So there will be no "composer require packagename" command to install the package. Then what will be the process they need to follow to install my package after i give them the package zip which contains all files of the package.

FYI, I followed this tutorial and made package https://medium.com/teknomuslim/how-to-build-your-own-laravel-package-chapter-1-9ffc0da9c04d

Please help with details not one or two lines plz.

Feb
15
1 month ago
Activity icon

Replied to Commands Not Firing Inside The Schedule Method Of Laravel Scheduler

but it seems Exceptions folder within app folder is there by default in laravel 5.8

Activity icon

Replied to Commands Not Firing Inside The Schedule Method Of Laravel Scheduler

For record, at last i found out that somehow i had app->Exceptions folder missing, that's why it wasn't working.

Feb
05
2 months ago
Activity icon

Replied to Commands Not Firing Inside The Schedule Method Of Laravel Scheduler

it does run locally well by the command php artisan schedule:run

Activity icon

Replied to Commands Not Firing Inside The Schedule Method Of Laravel Scheduler

@khalilm Kernel.php -

namespace App\Console;

use Illuminate\Console\Scheduling\Schedule; use Illuminate\Foundation\Console\Kernel as ConsoleKernel; use App\Console\Commands\Admin_transaction; use Log;

class Kernel extends ConsoleKernel { protected $commands = [

];

protected function schedule(Schedule $schedule)
{
    //this log works
    Log::info("cron job - kernel schedule method entered: ");

    //following log doesn't work
    $schedule->call(function () {
        Log::info("cron job - kernel schedule method call: ");
    })->everyMinute();
            
}

/**
 * Register the commands for the application.
 *
 * @return void
 */
protected function commands()
{
    $this->load(__DIR__.'/Commands');
    //require base_path('routes/console.php');
}

}

Activity icon

Replied to Commands Not Firing Inside The Schedule Method Of Laravel Scheduler

@khalilm yes i did put call method first but no logging i received. It's look like i am not finding options to email the output via command text or by settings in hostinger. But could you tell me why these 2 commands not running although cron job works and it does enter in schedule method in kernel file?!!

Feb
04
2 months ago
Activity icon

Replied to Commands Not Firing Inside The Schedule Method Of Laravel Scheduler

@khalilm did you mean this method - $schedule->call(function () { Log::info("call test done"); })->everyFiveMinutes(); ? no logging doesn't work.

@guybrush_threepwood in hostinger i tried to add your cron command but the character ">>" is not being taken.

Activity icon

Started a new Conversation Commands Not Firing Inside The Schedule Method Of Laravel Scheduler

I am trying to run artisan commands by laravel scheduler, i followed exactly the documentation of scheduling. here is the cron job set in my hostinger shared hosting control panel to start the laravel scheduler -

***** /usr/bin/php /home/u483465152/public_html/artisan schedule:run

in my app/console/kernel.php file, i put following two commands in schedule method -

$schedule->command('user_transaction:sync') ->everyMinute() ;

$schedule->call(function () { Log::info("call test done"); })->everyFiveMinutes();

For the first command above, following codes are in the User_Transaction.php command file located in app/console/commands folder -

class User_Transaction extends Command { protected $signature = 'user_transaction:sync';

protected $description = 'Command description';

public function __construct()
{
    parent::__construct();
}
public function handle()
{
    Log::info("cron job user transaction command handle ");
}

}

But i see that cron job works and it enters the schedule method (i tested by log) but the two commands in the schedule method is not firing !!, plz help, i have been struggling for more than 12 hours, i really tried many options all the ways, where is the leak?

Thanks in advance.

Jan
29
2 months ago
Activity icon

Replied to Setting Correct Value In Mail Settings To Send Email Using Smtp Server

Ok i will test, but why it don't work when i put MAIL_DRIVER=smtp , but it works when i put MAIL_DRIVER=mail !, how is that logical?

Jan
28
2 months ago
Activity icon

Started a new Conversation Setting Correct Value In Mail Settings To Send Email Using Smtp Server

  1. I am trying to send email using our smtp server in our laravel 5.8 version, in .env file -

MAIL_DRIVER=smtp MAIL_HOST=smtp.hostinger.com MAIL_PORT=587 [email protected] MAIL_PASSWORD=pass_here MAIL_ENCRYPTION=null

but email not sent !, when i put mail instead of smtp in mail_driver like MAIL_DRIVER=mail then things working. What does it mean? I did not find "mail" driver in documentation. is this the proper way to send email using our smtp server?

also it's look like sendmail service is being used in our hosting when sending emails (MAIL_DRIVER=mail is set in this case else not working)

So what is the proper way to send emails using smtp server with correct configuration??

  1. another thing is when email arrives at a gmail account i see something like that in from section in the email - [email protected] via srv284.main-hosting.eu

why it's showing "via"?! how to avoid showing it? please help.

Jan
14
2 months ago
Activity icon

Started a new Conversation Passing Parameter To Route Group Middleware From Single Route

Hi i have a route group and there are some routes within this route group as follows -

Route::group(['namespace' => 'Admin', 'middleware' => 'checkuser:perm'], function () { Route::get('admin/user/{status}', '[email protected]'); Route::get('admin/approveUser/{id}', '[email protected]'); }

I need to do some permission checking in checkuser middleware's handle method, so for this i can pass parameter to checkuser middleware like this as above - checkuser:perm where i am passing "perm" value.

But i want to pass this perm value from the single route within this route group to the middleware handle method. Like if it's possible to pass from here - Route::get('admin/user/{status}', '[email protected]');

i don't want to pass this value like this Route::get('admin/user/{perm}', '[email protected]'); because then the parameter will appear in url and anyone can alter it and access the url.

hope i made you understand that i want to pass a parameter/value to the middleware handle method from the single route within the route group declaration.