omarsow94

omarsow94

Member Since 2 Years Ago

Experience Points
3,940
Total
Experience

1,060 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
3
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
3,940 XP
Feb
26
3 months ago
Activity icon

Replied to Cannot Use Object Of Type StdClass As Array

Hello @sergiu17

$books = DB::table('lenting_book')->orderBy('id', 'DESC')->get();
Activity icon

Started a new Conversation Cannot Use Object Of Type StdClass As Array

I have this error trying to set variable like this :

foreach ($books as $value) {
       $value['user'] = $this->userRepository->getUserByID($value->user_id);
}

Current laravel version: 6.1.0

Dec
04
5 months ago
Activity icon

Replied to Unable To Write In The "public/images" Directory On Macbook

@bugsysha @snapey it's work fine now after a run this command sudo chown -R makeba public. Thanks all of you

Activity icon

Replied to Unable To Write In The "public/images" Directory On Macbook

@bugsysha the result is

otal 1432
[email protected]  32 makeba  staff    1024 Dec  3 21:56 .
drwxr-xr-x   19 makeba  staff     608 Dec  3 21:56 ..
[email protected]   1 makeba  staff    8196 Dec  3 21:58 .DS_Store
-rw-r--r--    1 makeba  staff     220 Oct  6 22:46 .editorconfig
-rw-r--r--    1 makeba  staff     793 Nov 27 15:46 .env
-rw-r--r--    1 makeba  staff     835 Nov 27 15:41 .env-prod
-rw-r--r--    1 makeba  staff     793 Nov 25 23:10 .env.example
-rw-r--r--    1 makeba  staff     251 Oct 27 05:23 .eslintrc.js
drwxr-xr-x   14 makeba  staff     448 Dec  4 23:16 .git
-rw-r--r--    1 makeba  staff     111 Oct  6 22:46 .gitattributes
-rw-r--r--    1 makeba  staff     163 Oct  6 22:46 .gitignore
-rw-r--r--    1 makeba  staff     175 Nov 25 23:21 .htaccess
-rw-r--r--    1 makeba  staff     242 Oct  6 22:46 .styleci.yml
drwxr-xr-x   11 makeba  staff     352 Nov 20 23:20 app
-rw-r--r--    1 makeba  staff    1686 Oct  6 22:46 artisan
drwxr-xr-x    4 makeba  staff     128 Oct  6 22:46 bootstrap
-rw-r--r--    1 makeba  staff    1531 Oct 21 15:41 composer.json
-rw-r--r--    1 makeba  staff  177947 Oct 21 15:42 composer.lock
drwxr-xr-x   15 makeba  staff     480 Nov 27 16:07 config
drwxr-xr-x    6 makeba  staff     192 Oct  6 22:46 database
drwxr-xr-x  756 makeba  staff   24192 Nov 12 15:55 node_modules
-rw-r--r--    1 makeba  staff  460304 Nov 12 15:55 package-lock.json
-rw-r--r--    1 makeba  staff    1365 Oct 27 05:22 package.json
-rw-r--r--    1 makeba  staff    1156 Oct  6 22:46 phpunit.xml
drwxrwxrwx   13 777     staff     416 Dec  3 21:56 public
drwxr-xr-x    7 makeba  staff     224 Oct 10 18:12 resources
drwxr-xr-x    6 makeba  staff     192 Oct  6 22:46 routes
-rw-r--r--    1 makeba  staff     563 Oct  6 22:46 server.php
drwxr-xr-x    5 makeba  staff     160 Oct  6 22:46 storage
drwxr-xr-x    6 makeba  staff     192 Oct  6 22:46 tests
drwxr-xr-x   42 makeba  staff    1344 Oct 21 15:42 vendor
-rw-r--r--    1 makeba  staff     905 Nov 28 09:53 webpack.mix.js
Activity icon

Replied to Unable To Write In The "public/images" Directory On Macbook

Yes @snapey i have an images folder and its permissions is 777

Activity icon

Replied to Unable To Write In The "public/images" Directory On Macbook

i did it, and there is the result @bugsysha

➜  beugue_lire git:(develop) ✗ ls -la
total 1432
[email protected]  32 makeba  staff    1024 Dec  3 21:56 .
drwxr-xr-x   19 makeba  staff     608 Dec  3 21:56 ..
[email protected]   1 makeba  staff    8196 Dec  3 21:58 .DS_Store
-rw-r--r--    1 makeba  staff     220 Oct  6 22:46 .editorconfig
-rw-r--r--    1 makeba  staff     793 Nov 27 15:46 .env
-rw-r--r--    1 makeba  staff     835 Nov 27 15:41 .env-prod
-rw-r--r--    1 makeba  staff     793 Nov 25 23:10 .env.example
-rw-r--r--    1 makeba  staff     251 Oct 27 05:23 .eslintrc.js
drwxr-xr-x   14 makeba  staff     448 Dec  4 22:49 .git
-rw-r--r--    1 makeba  staff     111 Oct  6 22:46 .gitattributes
-rw-r--r--    1 makeba  staff     163 Oct  6 22:46 .gitignore
-rw-r--r--    1 makeba  staff     175 Nov 25 23:21 .htaccess
-rw-r--r--    1 makeba  staff     242 Oct  6 22:46 .styleci.yml
drwxr-xr-x   11 makeba  staff     352 Nov 20 23:20 app
-rw-r--r--    1 makeba  staff    1686 Oct  6 22:46 artisan
drwxr-xr-x    4 makeba  staff     128 Oct  6 22:46 bootstrap
-rw-r--r--    1 makeba  staff    1531 Oct 21 15:41 composer.json
-rw-r--r--    1 makeba  staff  177947 Oct 21 15:42 composer.lock
drwxr-xr-x   15 makeba  staff     480 Nov 27 16:07 config
drwxr-xr-x    6 makeba  staff     192 Oct  6 22:46 database
drwxr-xr-x  756 makeba  staff   24192 Nov 12 15:55 node_modules
-rw-r--r--    1 makeba  staff  460304 Nov 12 15:55 package-lock.json
-rw-r--r--    1 makeba  staff    1365 Oct 27 05:22 package.json
-rw-r--r--    1 makeba  staff    1156 Oct  6 22:46 phpunit.xml
drwxr-xr-x   13 777     staff     416 Dec  3 21:56 public
drwxr-xr-x    7 makeba  staff     224 Oct 10 18:12 resources
drwxr-xr-x    6 makeba  staff     192 Oct  6 22:46 routes
-rw-r--r--    1 makeba  staff     563 Oct  6 22:46 server.php
drwxr-xr-x    5 makeba  staff     160 Oct  6 22:46 storage
drwxr-xr-x    6 makeba  staff     192 Oct  6 22:46 tests
drwxr-xr-x   42 makeba  staff    1344 Oct 21 15:42 vendor
-rw-r--r--    1 makeba  staff     905 Nov 28 09:53 webpack.mix.js
Activity icon

Started a new Conversation Unable To Write In The "public/images" Directory On Macbook

Hello, i'm trying to upload image but got issue about permissions.

public function postBook(Request $request)
    {
        
        $image = $request->file('cover');
        $new_name = rand() . '.' . $image->getClientOriginalExtension();
        $image->move(public_path('images'), $new_name);
        dd($new_name);
        return redirect('/admin/add-book-manually');
    }

And i have this following error

Unable to write in the "/Users/makeba/Documents/Others_Projects/beugue_lire/public/images" directory 

Thanks in advance