adjaf

adjaf

Member Since 5 Months Ago

Experience Points 220
Experience Level 1

4,780 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 0
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

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

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

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

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

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

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

22 Feb
3 weeks ago

adjaf left a reply on Artisan Custom Console Command Gets DB Access Denied

I just researched a little more, it results that Elastic Beanstalk has a different way of handling ENV variables, so the crontab is not receiving the right credentials for the database configuration.

Anyone who encounters a with this kind of error look for aws laravel scheduler

adjaf started a new conversation Artisan Custom Console Command Gets DB Access Denied

Hello, we are deploying Laravel as an API in AWS with MySQL. Everything is working fine except for the custom commands. We need to schedule two of them, the schedule is working fine, but the commands are not.

Both commands make a DB call, one is a DB::statement, and the other makes a DB::table.., however we're getting this error:

SQLSTATE[HY000] [2002] Connection refused

We tried running the commands with php artisan command:command_name, and we got the same error What could it be? The job in crontab looks like this:

* * * * * root /usr/bin/php /var/app/current/artisan schedule:run 1>> /dev/null 2>&1
10 Oct
5 months ago

adjaf left a reply on Storage/app Not Readable CentOS

@mattsplat yes i did it that way, actually i can see the files by entering the URL for example:

https://pro.laraveldev.com/storage/images/img1.jpg 

When I make the call to the route of the API by using the IP for example:

123.345.678.9:8000/api/save_file

It doesn't return the error

@hollyit it supposed that the apache server has permissions for all in the project folder, anyways let me check about selinux and the PHP access

09 Oct
5 months ago

adjaf started a new conversation Storage/app Not Readable CentOS

Hello, we're working on Laravel as API, we're storing images in database with:

Storage::disk('local')->put($path, $file);

There's no issue there, however when trying to read the route of storage/app we get an exception:

"message": "The root path /var/www/html/projects/laravel-pro/storage/app is not readable.",
    "exception": "LogicException",
    "file": "/var/www/html/projects/laravel-pro/vendor/league/flysystem/src/Adapter/Local.php",

We're setting the url with https with no port like this: https:://pro.laraveldev.com, ┬┐What could the problem be? Apache has permissions for writting and reading everything on the project folder

20 Sep
5 months ago

adjaf left a reply on Request Validator For ISOString Date With Milliseconds

I'm working with PHP 7.2, which date_format should i use then so I can receive the milliseconds?

19 Sep
5 months ago

adjaf left a reply on Git Laravel

When you get a Laravel project from git you need to make the following in this order:

Pull/Clone the project

Enter the Project Folder

And run the next commands in cmd

copy .env.example .env

run:

composer install

So you can have all packages from the composer.json

and then run

php artisan key:generate

After making this, you would be able to run the project, obviously you need to configure your databae connection and if you re using migrations run them all

adjaf left a reply on Auth Library

To change the table go to config/auth.php and in this line uncomment the second section and change 'table' to 'login'

'providers' => [
        'users' => [
            'driver' => 'eloquent',
            'model' => App\User::class,
        ],

        // 'users' => [
        //     'driver' => 'database',
        //     'table' => 'users',
        // ],
    ],

To override the username field, in App\Http\Controllers\Auth make an override function like this:

public function username()
{
        return 'user_name';
}

Having that changed, you will be able to use the login table and your user_name field.

adjaf left a reply on Git Laravel

Are you trying to push your full project and then making a pull and run?

adjaf started a new conversation Request Validator For ISOString Date With Milliseconds

I'm working with data sent from a React Native App, i have an events table and I want to validate the dates, they're sent as ISOString

Example:

{
"start_date": "2018-09-18T10:00:00.000Z"
}

In my Request Validator the field validator looks like this:

{
...
'start_date' => 'required|date_format:Y-m-d\TH:i:s.u\Z',
...
}

I have tried .u, .v, :v but i keep getting invalid data.

How can I validate the full ISOString as a date_format ?

adjaf left a reply on How To Write Code In Laracast?

~~ class Something implements Anotherthing {

} ~~