adjaf

adjaf

Member Since 1 Year Ago

Experience Points
220
Total
Experience

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-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 1
220 XP
Feb
22
7 months ago
Activity icon

Replied to 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

Activity icon

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, also with sudo 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
Oct
10
1 year ago
Activity icon

Replied to 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

Oct
09
1 year ago
Activity icon

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",
  "line": 81
}

I found out that it has to be with is_readable($path), however the route is not protected for apache user.

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

Sep
20
1 year ago
Activity icon

Replied to 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?

Sep
19
1 year ago
Activity icon

Replied to 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

Activity icon

Replied to Auth Library

To change the table go to config/auth.php and in this section

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

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

Uncomment the second section and change 'table' => 'users' to 'table'=>'login'

To override the username field, in App\Http\Controllers\Auth\LoginController.php 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. Remember that you'll need to change the register logic too.

Activity icon

Replied to Git Laravel

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

Activity icon

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

Request 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 ?

Activity icon

Replied to How To Write Code In Laracast?

class Something implements Anotherthing
{


}