jamalroger

jamalroger

Member Since 2 Weeks Ago

Experience Points
1,530
Total
Experience

3,470 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
2
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
1,530 XP
Jul
05
5 days ago
Activity icon

Replied to Should I Buy A2hosting.com To Host Laravel?

@andyandy in hosting we have 3 types

Shared hosting : wish is provider hosting give a small space to host your php project like native php,laravel ..

Vps hosting : they give virtual private server with os Linux, window ,you can do what you want and host php,Js ,anything

Dvs hosting : like vps but more capacity and performance

Now a2hosting is just hosting like others , and I think you can find this 3 type in it I choose the best type for you

Activity icon

Replied to Font Awesome In Html2pdf.js Did Not Show

In general html to pdf has problem with css, the css will not work if you call it externally, the font, css should be in the same html file

Activity icon

Awarded Best Reply on HELP, Convert String To Json... ?

@santino like any php array In the view

@foreach($section->information as $info)
{{$info['key'] }} 
@endforeah
Activity icon

Replied to HELP, Convert String To Json... ?

@santino like any php array In the view

@foreach($section->information as $info)
{{$info['key'] }} 
@endforeah
Activity icon

Replied to HELP, Convert String To Json... ?

@santino use casts in model will convert your json into php arrays Expemple In your model


Protected $casts=[
'information' =>'array' 
] ;

In view

$model->information // return php array 
Activity icon

Replied to CORS Issue - "No 'Access-Control-Allow-Origin' Header Is Present"

By default in laravel cors origin is ** you shouldn't config cors

Jul
04
6 days ago
Activity icon

Replied to How To Return Name Of Grade When Save Like Json?

I think that you have mistake in relation between model ffom ypur code i understand that you users has many gardes and garde too hasmany users for that you need to manyToMany relationship Go to docs of laravel eloquent manyToMany

Activity icon

Replied to Unable To Delete A Record

Remove the line softDeletes() and re-migrate your db, then your model will be delete and also you forgot to set references of the external keys

Activity icon

Replied to Login Using Different Roles Or Different Tables?

Roles are good for multiple login and you use Middleware to determine auth user roles and redirect to homespace or use multiple guards which i do not prefer

Activity icon

Replied to Unable To Delete A Record

Show you table migration???

Jul
03
1 week ago
Activity icon

Replied to Laravel Mix - Images With Same Filename In Different Folders Are Compiled To Single Asset

Normally it wrong because the tow img has the same name img.jpg laravel-mix copy your images into public/images/ folder and you know that in folder you can have tow file in the same name try to change the name of img

Jul
01
1 week ago
Activity icon

Replied to Images Not Showing With Public Url

Store the full path in database when you store file like : $path = Storage::url($file.store());// return full path

Activity icon

Replied to Remove Package From Node_modules

@atef95 if not working try to remove folder of package from node_modules

Jun
30
1 week ago
Activity icon

Replied to Laravel 7: Notification Timestamps Serialization

@michaloravec any other solution ??

@bobbybouwmann i have make notification from artisan command

php artisan make:notification Notification // to create notification
php artisan notification:table // to create  migration 

i don't where is notification model

i have just notification class in app/notification and migration

i am sending ajax to return notification in controller

	return $auth->unreadNotifications;

any idea ??

Activity icon

Awarded Best Reply on I Try To Get Some Data, But I Have All The Pages Code As Response (AJAX)

In index controller your are returning a view wish is page you should just return $json or directly return $herbs

Activity icon

Replied to I Try To Get Some Data, But I Have All The Pages Code As Response (AJAX)

Just click in best answer button 😊

Activity icon

Replied to I Try To Get Some Data, But I Have All The Pages Code As Response (AJAX)

πŸ™„πŸ™„πŸ™„ Because you have no herb in database

Activity icon

Replied to I Try To Get Some Data, But I Have All The Pages Code As Response (AJAX)

In index controller your are returning a view wish is page you should just return $json or directly return $herbs

Activity icon

Started a new Conversation Laravel 7: Notification Timestamps Serialization

Hi guys correctly i am upgrading from from laravel 6 to 7 but laravel 7 they changed default format date from y:m:d h:m:s to something like y:m:d h:m:s00000z I found i solution to casts timestamps in Model but where can i casts timestamps in notification ???

Jun
26
2 weeks ago
Activity icon

Replied to Laravel 6 : Data Inserting Into Db When I Deploy Projet On Apache2 Not Working

@jlrdw thanks for your advise it was Problem 1 : laravel http 301 Moved Permanently when i send post request i find a solution

in public/.htaccess file change the redirect trailing status from 301 to 307

# Redirect Trailing Slashes If Not A Folder…
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule ^(.*)/$ / [L,R=307]

Jun
24
2 weeks ago
Activity icon

Replied to Two Api Request

@lukaszj i think because you make tow request at same time take a look at this package will help https://github.com/spatie/async

Activity icon

Replied to Two Api Request

@lukaszj

now just pass data the to view like that

return view('cards.create', ['countries'=>$countries,'currencies '=>$currencies ]);

and in the View

@foreach($countries['data'] as $c )
code here
@endforeach
Activity icon

Replied to Two Api Request

@lukaszj pleasee call dd($countries) before you passing data to view to show the content of variable

Activity icon

Replied to Two Api Request

@lukaszj you should return resulta from controller if want to do a api

Route::get('testapi', function () {

$countries = Countries::getApiCountries(); // calling just that. it works

$currencies = Currency::getApiCurrencies() //



return ['countries'=>$countries,'currencies '=>$currencies ];
	
} 

and also should be called in api.php file because it's api

Activity icon

Replied to Laravel 6 : Data Inserting Into Db When I Deploy Projet On Apache2 Not Working

@jlrdw thanks for reply


$user = User::create([
            'username' => $request->username,
            'password' => Hash::make($request->password),
            'email' => $request->email,
            'role_id' => Role::where('slug', 'employee')->first()->id
        ]);

        $user->profile()->save(new Profile([
            'first_name' => $request->first_name,
            'last_name' => $request->last_name,
            'post' => $request->post,
            'salary' => $request->salary,
            'reste_leave' => $request->leave
        ]));

select,delete eloquent methods is worked but create,update,save,attach not working

Jun
23
2 weeks ago
Activity icon

Started a new Conversation Laravel 6 : Data Inserting Into Db When I Deploy Projet On Apache2 Not Working

hello , when i have use artisan command data is inserting but when i deploy project on Apache record did not inserting into database . the problem there no errors is showing laravel show success , i have already test mysql connectioon auto commit is set to 1 but not work

any idea ??