meeshka

meeshka

Member Since 3 Years Ago

Montreal (Bangalore)

Experience Points 23,895
Experience Level 5

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 Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

16 Dec
4 months ago

meeshka left a reply on 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",
22 Nov
4 months ago

meeshka left a reply on 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.

meeshka left a reply on Non-integer Primary Key

@AURAWINDSURFING - Oh well, Nova is not providing it and it thinks it's an id and will be auto incremented.

21 Nov
4 months ago

meeshka left a reply on 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))"
20 Nov
5 months ago

meeshka started a new conversation Non-integer Primary Key

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

27 Aug
7 months ago

meeshka started a new conversation Sub-domain Routing With Wildcards

I need to create a group based on 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.

03 Aug
8 months ago

meeshka left a reply on 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,
            ],
        ],
01 Jun
10 months ago

meeshka left a reply on In Laravel 5.2.45 Session Message Does Not Work, How To Fix

@hanif 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...

});
16 May
11 months ago

meeshka left a reply on Vimeo For Elearning...

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

01 May
11 months ago
24 Mar
1 year ago
19 Mar
1 year ago

meeshka left a reply on 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

18 Mar
1 year ago

meeshka left a reply on 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/

meeshka left a reply on 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.

17 Mar
1 year ago

meeshka left a reply on 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

image_url_220x124: something.jpg
image_url_120x84: something_else.png

meeshka left a reply on 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.

meeshka left a reply on Return Multiple Variables To Home Blade

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

12 Mar
1 year ago

meeshka left a reply on 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.

meeshka left a reply on How Is Email Being Sent From My EC2 Ubuntu.

@shabany It'll simply fallback on PHP's mail. Try creating a simple php file and send a mail to yourself using mail function.

Read more on Laravel docs

11 Mar
1 year ago

meeshka left a reply on Weird Bug After Adding Softdelete Feature To Models L5.2.29

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

meeshka left a reply on Does Laracast Offer Code Downloads?

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

09 Mar
1 year ago

meeshka left a reply on Error In Laravel Log

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

meeshka left a reply on 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.

06 Mar
1 year ago

meeshka left a reply on 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?

meeshka left a reply on 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?

05 Mar
1 year ago

meeshka left a reply on 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 :)

meeshka left a reply on 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

meeshka left a reply on User Defined Fields & Eloquent

Magento uses EAV for it's catalogs.

meeshka left a reply on 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 accordion. No?

meeshka left a reply on 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.

meeshka left a reply on 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?

meeshka left a reply on 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).

meeshka left a reply on 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?

04 Mar
1 year ago

meeshka left a reply on 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.

 <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>
03 Mar
1 year ago

meeshka left a reply on Videos Page Loading Slow

I think it will. Did you follow the thread?

meeshka left a reply on 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.

meeshka left a reply on 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.

meeshka left a reply on 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.

meeshka left a reply on 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.

02 Mar
1 year ago

meeshka left a reply on API Call FatalErrorException

Did you install composer packages as part of deployment?

meeshka left a reply on 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.

meeshka left a reply on Call To Undefined Method Illuminate\\Database\\Query\\Builder But Method Exists

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

meeshka left a reply on 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?

meeshka left a reply on 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();

meeshka left a reply on 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

meeshka left a reply on 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.