neogeninfotech

neogeninfotech

Member Since 2 Years Ago

Ahmedabad

Project Lead at Neogen Infotech

Experience Points 1,470
Experience Level 1

3,530 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 1
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.

30 Dec
2 years ago

neogeninfotech left a reply on Eloquent Table Not Returning Results When SQL Query Does

You can try this. $price = DB::table('prices') ->where('product_id','=',$product) ->where('lower_limit','>=',$qty) ->where('upper_limit','<=',$qty) ->get();

27 Dec
2 years ago

neogeninfotech left a reply on How To Pass Array Request Data Via Ajax In The Database Inside Laravel Controller

In blade file :

 var datastring = $("#add_patient_form").serialize();//name=Devid&surname=Jones&_token=Zdfg56AYBKjosecFHmoSjH3crWWV8L7oHaP80sIF
    /*
     * Ajax request for add 
     */
    var base_url = "{{Route('addData')}}";
    $.ajax({
        type: 'POST',
        url: base_url,
        async: false,
        dataType: 'json',
        data: datastring,
        success: function (data) {
        
        },
        error: function (data) {
         
        }
    });

In Controller file :

echo $request->name; // displays the column name
echo $request->surname; // displays the row values
26 Dec
2 years ago

neogeninfotech left a reply on Laravel Sessions Don't Work

please try to put this kernel.php file protected $middlewareGroups = [ 'web' => [ \Illuminate\Session\Middleware\StartSession::class,

    ], 

];

23 Dec
2 years ago

neogeninfotech started a new conversation Fullcalander Disable Non Working Hours Of Specific Day

Hello all i want to disable non working hours of specific date in fullcalander. In Database i have filed like working_starttime and working_endtime and day_of_week

22 Dec
2 years ago

neogeninfotech left a reply on Search Functionality With Encrypted Value Stored In Database

@jimmck

Data are already in encrypted form and i am using MySQL database.

21 Dec
2 years ago

neogeninfotech left a reply on Cant Receive The Right Row In The Database

please show me which type of Error.

neogeninfotech started a new conversation Search Functionality With Encrypted Value Stored In Database

** I have a patient table with encrypted fields like name, surname, email , i want to search in patient list page.

I used below code in Patient model. **

use Nicolaslopezj\Searchable\SearchableTrait;
use SearchableTrait;

protected $searchable = [
    'columns' => [
            'name' => 10,
            'surname' => 10,
            'email'=>10,
           ],
        ];

** In patient Controller getting searchable text as below : **

$search_patients = $request->input('search_patients');

** and use in Query :**

 $clinicPatientList = $clinic->patients()->search($search_patients)->paginate(env('NUM_ITEMS_PAGINATION', 10));

** but this code not working, how to resolve it. **

19 Dec
2 years ago

neogeninfotech left a reply on Secure URL Using Route Name

{{secure_url(book-a-billboard.quote.index')}}

neogeninfotech left a reply on How To Get Current Url Path

url()->current();

neogeninfotech left a reply on Best Place For Comparing Min And Max Values?

The best Place is StoreArticleRequest File.

neogeninfotech left a reply on Carbon, See Days, Hours And Minutes

You can use diffInHours()and diffInDays() function

neogeninfotech left a reply on Array_key_exists() Expects Parameter 2 To Be Array, Null Given In Serachable

@lindstrom

When I write code like below

protected $searchable = [
    'columns' => [
        'users.name' => 10,
    ],
];

I getting SQL error :

SQLSTATE[42000]: Syntax error or access violation: 1055 'mediktiv.specialities.name' isn't in GROUP BY (SQL: select `id` from (select `specialities`.*, max((case when LOWER(`name`) LIKE podology then 150 else 0 end) + (case when LOWER(`name`) LIKE podology% then 50 else 0 end) + (case when LOWER(`name`) LIKE %podology% then 10 else 0 end)) as relevance from `specialities` group by `specialities`.`id` having relevance >= 2.50 order by `relevance` desc) as `specialities`)

after that i changed config/database.php Setting:

Go to your config/database.php folder. In mysql configuration array, change strict => true to strict => false

And everything work nicely.

Thanks for your reply.

16 Dec
2 years ago

neogeninfotech left a reply on Array_key_exists() Expects Parameter 2 To Be Array, Null Given In Serachable

@lindstrom

when I write as above mention code , i getting below error

SQLSTATE[42S22]: Column not found: 1054 Unknown column '0' in 'field list' (SQL: select * from (select `specialities`.*, max((case when LOWER(`0`) LIKE traumatology then 0 else 0 end) + (case when LOWER(`0`) LIKE traumatology% then 0 else 0 end) + (case when LOWER(`0`) LIKE %traumatology% then 0 else 0 end)) as relevance from `specialities` group by `specialities`.`id` having relevance >= 0.00 order by `relevance` desc) as `specialities`)

15 Dec
2 years ago

neogeninfotech started a new conversation Array_key_exists() Expects Parameter 2 To Be Array, Null Given In Serachable

$search_speciality_name = 'Traumatology';
        
        $search = Speciality::search($search_speciality_name)->get();
14 Dec
2 years ago

neogeninfotech left a reply on Error In Sending Mail

did you on 2 step verification in your google account setting ?

neogeninfotech left a reply on Send Mail With Attachment

you can attach file usind this

$message->from($address, $name = null);
$message->sender($address, $name = null);
$message->to($address, $name = null);
$message->cc($address, $name = null);
$message->bcc($address, $name = null);
$message->replyTo($address, $name = null);
$message->subject($subject);
$message->priority($level);
$message->attach($pathToFile, array $options = []);

// Attach a file from a raw $data string...
$message->attachData($data, $name, array $options = []);

// Get the underlying SwiftMailer message instance...
$message->getSwiftMessage();

or more detail you can goto https://laravel.com/docs/5.2/mail

neogeninfotech left a reply on Selectize.js - Add Class Only To Selected Option

this is not enough code you have to check item length and you have to apply add and remove css class function

neogeninfotech left a reply on Error In Sending Mail

This one worked for me, 'if you are using GMAIL'

Go to 'My Accounts' Go to 'Sign-in & security' Scroll down to 'Allow less secure apps' Switch #3 to ON

neogeninfotech left a reply on SMTP Mail Is Not Working

you can try this Code in .env file change

MAIL_DRIVER = smtp MAIL_HOST = smtp.gmail.com MAIL_PORT = 587 MAIL_USERNAME = your-gmail-username MAIL_PASSWORD = your-application-specific-password MAIL_ENCRYPTION = tls

neogeninfotech left a reply on Search Engine

You can use laravel serchable

neogeninfotech left a reply on How To Get An Old Input Value For Selectize Input

check it with old('engagement_question') and then dd(Input::old('engagement_question'))

neogeninfotech left a reply on Error In Sending Mail

please add this in your env

MAIL_DRIVER=smtp

MAIL_HOST=smtp.gmail.com

MAIL_PORT=587

[email protected]

MAIL_PASSWORD=********

MAIL_ENCRYPTION=tls

And Check your mail.php

09 Dec
2 years ago

neogeninfotech left a reply on How To Use Sum('column') From Relation In Where Clause And OrderBy It

you can use db query

->selectRaw('sum(user_actions.clicks) as clicks')
   ->orderBy('clicks', 'desc')

neogeninfotech left a reply on How To Pass IDs Of Checked Box

you can do like this

$id = 1;
$array =array(1,2,3);
{{ Form::checkbox('chk[]',$id,in_array($id, $array)?true:'',['class'=>'cb']) }}

neogeninfotech left a reply on How To Add Dynamic Dropdown List Column On Laravel 5.3 Registration?

** This is example code about countries dynamic dropdown list. **

** In your  registercontroller you can add code as below mention example: **

public function showregistrationform()
{
    $countries = Country::all()->pluck('name', 'id'); // get all countries
    return view('auth.register', [ 'countries' => $countries]);
}

** and in your view File you can write as  mention sample code below : **

{{Form::select('country_id', $countries ,null , ['placeholder' => _t("static_message", "select_country")])}}

neogeninfotech left a reply on How To Convert SQL Into Laravel 5.2 Query Builder

I suggest to best practice for Database to use Eloquent model in laravel

08 Dec
2 years ago

neogeninfotech left a reply on What's The Default Value Of Updated_at Field?

As mentioned in comments, if the model did not change the timestamps wont be updated. However if you need to update them, or want to check if everything is working fine use $model->touch() - more here https://laravel.com/api/5.1/Illuminate/Database/Eloquent/Model.html#method_touch

neogeninfotech left a reply on WithTrashed On Relationship (method)

write this statement protected $dates = ['deleted_at']; in your Model Section after use SoftDeletes Like this :

use Illuminate\Database\Eloquent\SoftDeletes;

class Activity extends Model { use SoftDeletes; protected $dates = ['deleted_at']; }

neogeninfotech left a reply on I Added Team Dropdown List In The Basic Registration And Login Laravel Page But It Is Not Selecting What To Do?

In Controller: $teamList = Team::all()->pluck('name', 'id');

In View {{ Form::select('team_id', $teamList, null, array('class' => 'form-control') }}

If you want to save this value you can get via request like this in cotroller: $team_id = $request->input('team_id');