hasen39

Member Since 2 Years Ago

Experience Points
4,920
Total
Experience

80 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
5
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
4,920 XP
Apr
17
3 weeks ago
Activity icon

Started a new Conversation Using Custom Guard In Laravel Voyager

hi guys i am using voyager and i use custom guard to use custom guard i use admins table and i change user_roles table to admin_roles but when i try to login i get this error

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'dagu_ad.user_roles' doesn't exist (SQL: select roles.*, user_roles.user_id as pivot_user_id, user_roles.role_id as pivot_role_id from roles inner join user_roles on roles.id = user_roles.role_id where user_roles.user_id in (1))

what shoud i do ? thank you

Mar
29
1 month ago
Activity icon

Replied to Route Not Found Error

not work

Activity icon

Replied to Route Not Found Error

+--------+----------+------------------------------------------------+------+---------------------------------------------------------------------------+------------------------------------------+
|        | GET|HEAD | /                                              |      | Closure                                                                   | web                                      |
|        | POST     | api/auth/forgot_password                       |      | App\Http\Controllers\Api\Auth\[email protected]               | api                                      |
|        |          |                                                |      |                                                                           | App\Http\Middleware\SanctumGuest         |
|        | POST     | api/auth/login                                 |      | App\Http\Controllers\Api\Auth\[email protected]                        | api                                      |
|        |          |                                                |      |                                                                           | App\Http\Middleware\SanctumGuest         |
|        | POST     | api/auth/register                              |      | App\Http\Controllers\Api\Auth\[email protected]                     | api                                      |
|        |          |                                                |      |                                                                           | App\Http\Middleware\SanctumGuest         |
|        | GET|HEAD | api/channel_catagory                           |      | App\Http\Controllers\Catagory\[email protected]               | api                                      |
|        |          |                                                |      |                                                                           | App\Http\Middleware\Authenticate:sanctum |
|        | POST     | api/channels/register_channel                  |      | App\Http\Controllers\Api\Channels\[email protected]         | api                                      |
|        |          |                                                |      |                                                                           | App\Http\Middleware\Authenticate:sanctum |
|        | GET|HEAD | api/channels/users_channel/{user_id}           |      | App\Http\Controllers\Api\Channels\[email protected]       | api                                      |
|        |          |                                                |      |                                                                           | App\Http\Middleware\Authenticate:sanctum |
|        | GET|HEAD | api/csrf-cookie                                |      | Laravel\Sanctum\Http\Controllers\[email protected]                | web                                      |
|        | POST     | api/logout                                     |      | App\Http\Controllers\Api\Auth\[email protected]                       | api                                      |
|        |          |                                                |      |                                                                           | App\Http\Middleware\Authenticate:sanctum |
|        | POST     | api/promotions/add_promotion                   |      | App\Http\Controllers\Campaign\[email protected]        | api                                      |
|        |          |                                                |      |                                                                           | App\Http\Middleware\Authenticate:sanctum |
|        | GET|HEAD | api/promotions/available_days                  |      | App\Http\Controllers\Api\Packages\[email protected]        | api                                      |
|        |          |                                                |      |                                                                           | App\Http\Middleware\Authenticate:sanctum |
|        | GET|HEAD | api/promotions/edit_promotion/{advert_id}      |      | App\Http\Controllers\Campaign\[email protected]        | api                                      |
|        |          |                                                |      |                                                                           | App\Http\Middleware\Authenticate:sanctum |
|        | GET|HEAD | api/promotions/list_of_advert_post/{advert_id} |      | App\Http\Controllers\Api\TelegramPost\[email protected]  | api                                      |
|        |          |                                                |      |                                                                           | App\Http\Middleware\Authenticate:sanctum |
|        | GET|HEAD | api/promotions/list_of_user_advert             |      | App\Http\Controllers\Campaign\[email protected]       | api                                      |
|        |          |                                                |      |                                                                           | App\Http\Middleware\Authenticate:sanctum |
|        | GET|HEAD | api/promotions/packages                        |      | App\Http\Controllers\Api\Packages\[email protected] | api                                      |
|        |          |                                                |      |                                                                           | App\Http\Middleware\Authenticate:sanctum |
+--------+----------+------------------------------------------------+------+---------------------------------------------------------------------------+------------------------------------------+
Activity icon

Replied to Route Not Found Error

why ? by default laravel prefix api route with /api

Activity icon

Replied to Route Not Found Error

both are php 8.0

Mar
28
1 month ago
Activity icon

Replied to Route Not Found Error

i chage it but still not working

Activity icon

Replied to Route Not Found Error

thank you for your help but i didnt understand what do you want to say

Activity icon

Replied to Route Not Found Error

for testing on feature test

Activity icon

Replied to Route Not Found Error

here is my route file

 Route::prefix('promotions')->group(function () {     
   Route::get('/packages',[PackagesController::class,'getAvailablePackages']);
   Route::get('/available_days',[PackagesController::class,'availableDays']);
   Route::post('add_promotion',[CampainAddingController::class,'addPromotion']);
   Route::get('/list_of_user_advert',[CampaignController::class,'listOfUserCampaign']);
   Route::get('/list_of_advert_post/{advert_id}',[TelegramPostController::class,'advertsPost']);
   });

Activity icon

Started a new Conversation Route Not Found Error

I get route note found error but when I write

 PHP artisan route: list

it exists.

I try cache clear

PHP artisan optimize

and also i try all solutions on https://stackoverflow.com/questions/43715106/404-not-found-but-route-exist-in-laravel-5-4/52802757

still the error exist i am using ubuntu20.0 when i test it using my friend computer it is working

any solution ?

Mar
19
1 month ago
Activity icon

Started a new Conversation Telegram App Post Preview

hi laracasts we are telegram advertisement company and we want to show how the advert is look like on telegram when the advert is odered on our web app.

is there a way to do this ?

Mar
02
2 months ago
Activity icon

Started a new Conversation 403 Forbidden Access To This Resource On The Server Is Denied!

yesterday it gives me a 403 forbidden error on my website when I refresh it after two hours it works. I have got again a 403 forbidden error on my website it was working nice before two hours?

Jan
19
3 months ago
Activity icon

Replied to Laravel Performance Optimization

can you give me example

Activity icon

Replied to Laravel Performance Optimization

i use index on link_clicks table . what is mean by splitting

Activity icon

Started a new Conversation Laravel Performance Optimization

hi laracasts

i had get time out error on my server due to large data in my table here is the concept i want i have users ,link_clicks and payments table and i want to fetch total pending payment of a user where total_pending payment is earning of user in link clicks table without current month minus total paid from payments table. but the rows in link_clicks table are more than 3 million how can i solvet his problem.

her is my query code

$payments = DB::table('users')
        ->join('link_clicks','users.id','=','link_clicks.user_id')
        ->join('payments','users.id','=','payments.user_id')
        ->selectRaw(
            DB::raw('
            sum(link_clicks.earn) as totalearn, 
            users.id,sum(payments.paid) as total_paid,
            (sum(link_clicks.earn)-sum(payments.paid)) as pending_payment
            '))
        ->where('users.status', '=', 1)
        ->whereDate('link_clicks.created_at','<',Carbon::now()->firstOfMonth())
        ->groupby('users.id')->havingRaw('(sum(link_clicks.earn)-sum(payments.paid)) >= 25')
        ->simplePaginate(10);

Nov
11
5 months ago
Activity icon

Started a new Conversation Telegram Bot Not Giving Response

Hi developer's I used to irazasyed telegram bot sdk and I have developed telegram bot using this library before 3 months and it was on github now I pull it and I set up the project but when I send the start command it doesn't give any response

I use ngrok for development it show 200 OK response means the request is done

Asynchronous request is false in setting

Any one who support me

Thank you