meeshka

meeshka

Member Since 4 Years Ago

Montreal (Bangalore)

Experience Points
23,895
Total
Experience

1,105 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
182
Lessons
Completed
Best Reply Awards
12
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 5
23,895 XP
Dec
16
10 months ago
Activity icon

Replied to Non-integer Primary Key

Update: Nova 1.2.1 partially fixes the issue.

However I still see:

    "message": "SQLSTATE[HY000]: General error: 1366 Incorrect integer value: 'INR' for column 'actionable_id' at row 1 (SQL: insert into `action_events` (`batch_id`, `user_id`, `name`, `actionable_type`, `actionable_id`, `target_type`, `target_id`, `model_type`, `model_id`, `fields`, `status`, `exception`, `updated_at`, `created_at`) values (8c845b44-9298-4f8c-8e44-c3facbfefaf3, 2, Update, App\Currency, INR, App\Currency, INR, App\Currency, INR, , finished, , 2018-12-16 22:55:47, 2018-12-16 22:55:47))",
    "exception": "Illuminate\Database\QueryException",
Nov
22
10 months ago
Activity icon

Replied to Non-integer Primary Key

@AURAWINDSURFING - I'll try this out. In my case code changes based on what currency is being edited. i.e USD EUR CAD etc.

Activity icon

Replied to Non-integer Primary Key

@AURAWINDSURFING - Oh well, Nova is not providing it and it thinks it's an id and will be auto incremented. It is a bug. I was wondering if anyone had a workaround till there is a proper fix in the future releases.

https://github.com/laravel/nova-issues/issues/141

Nov
21
10 months ago
Activity icon

Replied to Non-integer Primary Key

@AURAWINDSURFING - Yes. It is ignoring the primary key field named code which is the 3 char currency code like USD

"message": "SQLSTATE[HY000]: General error: 1364 Field 'code' doesn't have a default value (SQL: insert into `currencies` (`rank`, `symbol`, `conversion`, `base`, `active`, `updated_at`, `created_at`) values (10, €, 0.55, 0, 0, 2018-11-22 01:06:56, 2018-11-22 01:06:56))"
Nov
20
10 months ago
Activity icon

Started a new Conversation Non-integer Primary Key

Has anybody got a Nova resource working for a Model with a non-integer primary key? e.g string?

Aug
27
1 year ago
Activity icon

Started a new Conversation Sub-domain Routing With Wildcards

I need to create a group based on sub-domain i.e admin.* where * is domain.com or domain.local etc. Is there anyway to accomplish this? Route::domain('admin.*') doesn't work anyways.

Aug
03
1 year ago
Activity icon

Replied to Extending LogManager To Create A Custom Channel/driver

Looks like I can simply define a channel like the one below in config/logging.php:

        'loggly' => [
            'driver' => 'monolog',
            'handler' => Monolog\Handler\LogglyHandler::class,
            'formatter' => Monolog\Formatter\JsonFormatter::class,
            'with' => [
                'token' => '3ad4**************************4e03/tag/some-dev',
                'level' => LogLevel::NOTICE,
            ],
        ],
Jun
01
1 year ago
Activity icon

Replied to In Laravel 5.2.45 Session Message Does Not Work, How To Fix

@hanif-king Possibly,

  1. Check if web middlewareGroup has \Illuminate\Session\Middleware\StartSession::class, inside Kernel.php
  2. Ensure your routes that need access to session are grouped like below
Route::group(['middleware' => 'web'], function () {

    // Your routes...

});
May
16
1 year ago
Activity icon

Replied to Vimeo For Elearning...

@Alzaabi98 check this blog. Particularly Only people with the private link section.

May
01
1 year ago
Activity icon

Replied to Different User Types Have Different Profile Page, But I Need One To Be Able To See The Others

So, landlord should be able to impersonate Tenant? Maybe something like https://github.com/404labfr/laravel-impersonate would help?

Mar
24
1 year ago
Activity icon

Replied to Raw Query Giving Error When Passed To View

@WEBIONDEV123 What's in stat.blade.php?

Mar
19
1 year ago
Activity icon

Replied to 404 After Deploying Lumen API

@makapaka 1) Does public folder have index.php? Looks like requests are not reaching index.php. 2) Make sure rewrite rules are in place. More here

Mar
18
1 year ago
Activity icon

Replied to Some Advices Needed For A Career Move

@francoboy7 You have plenty of options and Laravel is one among them. You can go UI way, Frontend way with Javascript. Node+(React/Angular) is another world. You could also consider specializing in products like WordPress, Drupal etc.

Check something like https://www.upwork.com/cat/developers/

Activity icon

Replied to Type Error: Argument 2 Passed To Illuminate\Mail\Mailer::send() Must Be Of The Type Array, Object Given,

@Webiondev123 Parameter 1 is the name of the view, Parameter 2 should be array of data that you want to pass to the view. Also, $message will be injected into the closure.

Also, what version of Laravel are you using?

Mar
17
1 year ago
Activity icon

Replied to Return Multiple Variables To Home Blade

Not sure what you are expecting foreach to do. It's always easier to suggest if the array/object structure is known.

If the array_slice is returning an array like below:

[
    'image_url_220x124' => 'something.jpg',
    'image_url_120x84' => 'something_else.png',
]

Then a foreach like below

@foreach ($listtt as $key => $value)
    <p>{{ $key }}: {{ $value }}</p>
@endforeach
                                

will produce

<p>image_url_220x124: something.jpg</p>
<p>image_url_120x84: something_else.png</p>
Activity icon

Replied to Return Multiple Variables To Home Blade

What is array_slice($list->response->things,0,6) returning to you? Got some test data?

Or you could dd($listtt) and paste the output here.

Activity icon

Replied to Return Multiple Variables To Home Blade

@uhbc What exactly do you have inside your home.blade.php?

Mar
12
1 year ago
Activity icon

Replied to How Is Email Being Sent From My EC2 Ubuntu.

@shabany Right. I misread the smtp part. If it's explicitly set to smtp then it'll transmit/transport via suitable OpenSSL wrappers.

Activity icon

Replied to How Is Email Being Sent From My EC2 Ubuntu.

@shabany It'll simply fallback on PHP's mail. Otherwise, Laravel simply routes emails via whatever the DRIVER you have set in your .env. Try creating a simple php file and send a mail to yourself using mail function.

Read more on Laravel docs

Mar
11
1 year ago
Activity icon

Replied to Weird Bug After Adding Softdelete Feature To Models Laravel 5.2.29

What version of Laravel are you using? Sounds something related to https://github.com/laravel/framework/pull/19381

Activity icon

Replied to Does Laracast Offer Code Downloads?

@samkatz In some of the recent series Jeff started providing links to git repo.

Mar
09
1 year ago
Activity icon

Replied to Error In Laravel Log

You could change it from within your script like ini_set('max_execution_time', 60);

Activity icon

Replied to Error In Laravel Log

@haizone It's a PHP error caused by prolonged script execution. More info: https://stackoverflow.com/questions/5164930/fatal-error-maximum-execution-time-of-30-seconds-exceeded

You can increase the execution time if needed.

Mar
06
1 year ago
Activity icon

Replied to How To Make A Dropdown List Suggest Only Options In Relation With A Selected Value?

@chagouani console.long(e); should be console.log(e);. That maybe causing your JS to not run?

Activity icon

Replied to How To Make A Dropdown List Suggest Only Options In Relation With A Selected Value?

@chagouani So, the code that you have doesn't work? Any specific errors?

Mar
05
1 year ago
Activity icon

Replied to Simple AJAX Call To Update A Table With The Content Coming From A MySQL Table

  1. You need a controller that takes the request, validates it and passes it to a handler. Usually a method within the controller.
  2. Your JS libraries like jQuery are loaded from a layout file.
  3. Page specific scripts are loaded from a view which controller renders.

So, yeah, get started and dirty up your hands :)

Activity icon

Replied to Simple AJAX Call To Update A Table With The Content Coming From A MySQL Table

@P81CFM Have you got started with Laravel yet? If so, can you update this post with code and where exactly you need help? If not, you could actually get started with a tutorial like this: https://laracasts.com/series/laravel-from-scratch-2017

Activity icon

Replied to User Defined Fields & Eloquent

Magento uses EAV for it's catalogs.

Activity icon

Replied to Why The Details Of An Administrator Are Appearing Without A Administrator Being Selected In The Radio Button?

Ideally, it's better to load edit form using Ajax based on the radio button selected by user.

With respect to linking radio buttons and the forms, I think in your case, radio buttons need not be part of edit forms. Make the admin listing visible by default and let the corresponding form appear on radio button click and hide the others.

Further, you can use something like jQuery Accordion. No?

Activity icon

Replied to Problem With Login And Redirect

@SerhiiNuzhnyi You could log such events on your development server. If you are into TDD, you could also create suitable tests to avoid such errors.

Activity icon

Replied to Problem With Login And Redirect

@SerhiiNuzhnyi

Are you seeing the login form and able to login? Further, it sounds like the middleware is redirecting you. It is sensing that there is a user in the session and hence redirects back to home.

Can you paste the middleware here?

Activity icon

Replied to Why The Details Of An Administrator Are Appearing Without A Administrator Being Selected In The Radio Button?

@jonew You can put that in a partial and @include it. But it has to repeat, unless you want to manipulate it with JavaScript (later ajax).

Activity icon

Replied to Return DB Result From Middleware

@sdiama

Few possibilities.

  1. All controllers do extend a Base Class right? You could run the query inside constructor of that class.

  2. You can create a Trait and use this in all controllers.

However, what exactly are you trying to achieve with this query?

Mar
04
1 year ago
Activity icon

Replied to Why The Details Of An Administrator Are Appearing Without A Administrator Being Selected In The Radio Button?

@jonew Oh that's because after the final iteration of foreach the $admin will have the last admin which is what you are rendering after all the radio buttons. That should help you fix the logic.

    <form method="post" class="clearfix" action="{{route('admins.update', ['id' => $post->id])}}" enctype="multipart/form-data">
        {{csrf_field()}}
        @foreach($administrators $admin)
              <div class="form-check">
                <input class="form-check-input" type="radio" name="radiobutton" id="{{$admin->id}}" value="">
                <label class="form-check-label" for="">
                  {{$admin->name}}
                </label>
              </div>
        @endforeach

Loop ends there and $admin has last entry from $administrators. You may want to separate edit and create forms.

 <div class="form-check">
          <input class="form-check-input" type="radio" name="radiobutton" id="create_administrator"
                 value="option2">
          <label class="form-check-label" for="exampleRadios2">
              Create new administrator
          </label>
      </div>
      <div class="form-group">
        <label for="name">Name</label>
        <input type="text" required class="form-control" value="{{ $admin->name }}" name="name">
      </div>
    
      <!-- below I have more form fields like administrator name, email, etc -->
    
      <input type="submit" id="adminStoreButton" class="btn btn-primary" value="Create"/>
      <input type="submit" id="adminUpdateButton" class="btn btn-primary" value="Update"/>
      </form>
Mar
03
1 year ago
Activity icon

Replied to Videos Page Loading Slow

I think it will. Did you follow the thread?

Activity icon

Replied to Why My Code Can't Work On Server

@osahsh You should be able to run migrations on any hosting as long as your database credentials have access to create/drop/alter tables.

Activity icon

Replied to Subdomains On A Laravel App Can't Be Masked By Other Domain

@nickclicksco You could probably proxy? ProxyPass or something similar in the apache world.

Activity icon

Replied to Convert This Query Into Laravel Query Builder

@yadhul To make this work with Eloquent methods, you will have to use joins. Sometimes, if performance is an issue, it's fine to use queries like above.

Activity icon

Replied to API Call FatalErrorException

You project required OAuth and it was not available, so it failed? That means composer.json doesn't have that package listed and hence it was not installed. So, composer require the OAuth package.

Mar
02
1 year ago
Activity icon

Replied to API Call FatalErrorException

Did you install composer packages as part of deployment?

Activity icon

Replied to Using Require_once To Include A Class In A Folder Outside Of Laravel Folder

It may not work by requiring class files. You will have to identify packages and require them in your projects.

Activity icon

Replied to Call To Undefined Method Illuminate\\Database\\Query\\Builder But Method Exists

@Notdavis Are you trying to retrieve all claims with a submittedClaim->update = 1 ?

It should actually be something like below:

$user->claims()->whereHas('submittedClaim', function($query) {
    $query->where('update', '=', 1);
})->get();
Activity icon

Replied to Why The Details Of An Administrator Are Appearing Without A Administrator Being Selected In The Radio Button?

@jonew

  1. Which of your routes load the form?
  2. Can you post the screenshot of your form with loaded values?
Activity icon

Replied to Very Wierd Sorting Issue

@ardf16 Try

Post::select(DB::raw("DATE_FORMAT(updated_at, \"%m-%Y\") AS updated_month"))
->groupBy('updated_month')
>orderBy('updated_month', 'DESC')
>get();
Activity icon

Replied to How Do I Add Project_id To A New Task Using Eleoquent Relationship Related Models?

Resource controllers like this are a good practice and helps you with making your API RESTful

Activity icon

Replied to Composer Command Not Found

@coldpizza There will be composer.lock that'll tell composer about it. So, no need to check if I understand your question correctly.