vandan

vandan

Member Since 8 Months Ago

Bhavnagar

Jr. Laravel Developer at Bytes & Bits

Experience Points 2,890
Experience Level 1

2,110 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 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.

25 Mar
8 hours ago

vandan left a reply on If Condition Check Value

@BURLRESEARCH - Thank You Very much its working also sharing a knowlege

vandan started a new conversation If Condition Check Value

if $amount is less than $charges than return true otherwise false

public function paymentstore(Request $request,$id)

{

    $charges=Registration::where('id','=',$id)->pluck('charges');        


    if($request->get('amount') <= $charges)

    {

        return "true";

    }

    else

    {

        return "false";

    }

}

20 Mar
5 days ago

vandan started a new conversation Empty Variable Check In Blade File

blade file

@foreach($student as $students)

@if(students->studentname=="null)

condion true

@else

Condition False

@endif

@endforeach

Controller file

public function view() { $student=Student::all();

return view('view',compact('student));

}

19 Mar
6 days ago

vandan started a new conversation How To Active Link Set In Laravel Using Helper Function

here is my blade file

  • Add Stream
  • Add Reference
  • here is my helper function code

    function set_active($path) {

    if($path == '/'){

       return Request::is($path) ? 'current' : '';
    

    }else{

       return call_user_func_array('Request::is', (array)$path) ? 'current' : '';
    

    }

    }

    18 Mar
    1 week ago

    vandan left a reply on SQLSTATE[23000]: Integrity Constraint Violation

    21

    It just simply means that the value for column country on table comments you are inserting doesn't exist on table country_type or you are not inserting value for country on table user. Bear in mind that the values of column country on table comments is dependent on the values of ID on table country_type.

    vandan left a reply on Trying To Get Property Of Non-object

    @SNAPEY - when my pc restart and code will run thank you

    15 Mar
    1 week ago

    vandan left a reply on Trying To Get Property Of Non-object

    @SNAPEY - nothing work as same error

    14 Mar
    1 week ago

    vandan left a reply on Call To Undefined Method Illuminate\Support\Facades\Gate::before()

    public function boot()

    {

    $this->registerPolicies();
    
    
    Gate::define('isAdmin', function ($user) {
    
        return $user->role == 1;
    
    });
    

    }

    vandan left a reply on Trying To Get Property Of Non-object

    @MUNAZZIL - yes its student id

    vandan left a reply on Trying To Get Property Of Non-object

    @DRAGONEYES96 - Trying to get property of non-object

    same error not working

    vandan left a reply on Trying To Get Property Of Non-object

    @SNAPEY - nothing work its display null value how to fix it

    vandan left a reply on Trying To Get Property Of Non-object

    @MUNAZZIL - yes bro its display null value

    vandan left a reply on Trying To Get Property Of Non-object

    @EDOC - Nothing Work bro

    vandan started a new conversation Trying To Get Property Of Non-object

    Blade file

    @foreach ($information as $informations)

    {{$informations->followups->description}}
    
    {{$informations->followups->followupdate}}
    

    @endforeach

    Controller file

        $information=Registration::where('id','=',$id)->get();
    
    return view('view',compact('information'));   
    
     
    

    Model followup

    public function registrations()

    {
    
        return $this->hasMany('App\Registration');
    
    }
    

    Registration Model

    public function followups()

    {

       return $this->belongsTo('App\Followup','student_id');
    

    }

    13 Mar
    1 week ago

    vandan started a new conversation How To Edit Data In Database Using Javascript ?

    how to data update using javascript

    vandan left a reply on How To Print Current System Time In My Laravel Blade

    @STEREOH - thank you ..

    when i data store in database so i would like to data base time and date

    vandan started a new conversation How To Print Current System Time In My Laravel Blade

    my blade file print a system current date

    vandan left a reply on How To Use The Route Names In Controller

    Route::get('searchDocNum',('as'=>'document.searchDocNum','uses'=>'[email protected]'));

    12 Mar
    1 week ago

    vandan left a reply on FatalErrorException

    @TECHGURU - not work

    vandan started a new conversation FatalErrorException

    Cannot use isset() on the result of an expression (you can use "null !== expression" instead)

    @if(isset($button->firstpay=="null"))

    <button type="submit" name="add" value="1" class="btn btn-primary"> Add </button>                                                                                
    

    @else

    <button type="submit" name="update" value="4" class="btn btn-primary"> Update </button>                    
    

    @endif

    11 Mar
    2 weeks ago

    vandan left a reply on How To Loop Through Database Connections

    Use a Try/Catch block for every connection to database.

    Try

    Me.1TableAdapter.Connection.ConnectionString = "Data Source=10.0.1.1;Initial Catalog=cat;Persist Security 
    

    Info=True;User ID=id;Password=password;Connection Lifetime=0"

    'your code here to create HTML table'
    

    Catch ex As Exception

    End Try

    vandan left a reply on Custom Validation Rule And Regex

    $this->validate(request(), [

    'projectName' => 
    
        array(
    
            'required',
    
            'regex:/(^([a-zA-Z]+)(\d+)?$)/u'
    
        )
    

    ];

    vandan left a reply on Custom Validation Rule And Regex

    $this->validate(request(), [ 'projectName' => array( 'required', 'regex:/(^([a-zA-Z]+)(\d+)?$)/u' ) ];

    06 Mar
    2 weeks ago

    vandan left a reply on Migration $table->timestamp('my_timestamp') Has UseCurrent()

    because timestamp is default faclity provided in laravel so you cannot create timestamp

    vandan left a reply on Middleware Apply For This Page

    @AJITHLAL - yes brother i am trying to custom middleware

    vandan left a reply on Idwise Page Redirect Using Middleware

    @BOBBYBOUWMANN - here is my controller

    public function studentview($id)

    {

        $edit="null";         
    
        $information=Registration::where('id','=',$id)->get();        
    
        return view('admin.pages.student_information.studentinformation',compact('information','edit'));
    
        // return $information;
    
    }
    

    vandan left a reply on Run Function When Session Expire

    Try settings callbacks in session_set_save_handler on close and gc (garbage collector).

    vandan started a new conversation Idwise Page Redirect Using Middleware

    my project page is redirectid wise & how can use middleware to authenticate my page redircect using middleware

    vandan left a reply on How To Edit Laravel Field Validation Message ?

    protected $rules = [

    'email_address' => 'sometimes|required|email|unique:users',
    
    ..
    

    ];

    22 Feb
    1 month ago

    vandan started a new conversation How Registration Table Name Print

    public function firstprint() {

        //$student=Firstpay::all();
    
        $student=Firstpay::with('Registration')->get();        
    
        return $student;        
    
        //return view('admin.pages.student_information.firstinstallmentprint',compact('student'));
    
    }
    

    vandan left a reply on One To Many Relationship

    @BOBBYBOUWMANN - print a student_name via firstpay controller

    vandan started a new conversation One To Many Relationship

    class Registration extends Model //Parent Model

    {

    protected $fillable = [
    
        'stream_id','city','student_name','contact_number','email','reference_name','resume','date_registration',
    
    ];
    
    
    
    public function firstpay()
    
    {
    
        return $this->hasMany('App\Registration');
    
    }
    

    }

    class Firstpay extends Model //Child table

    {

    protected $fillable = [
    
        'student_id','firstpay','firstpaydate'
    
    ];
    
    
    
    public function registration()
    
    {
    
        return $this->belongsTo('App\Firstpay','student_id');
    
    }
    

    }

    15 Feb
    1 month ago

    vandan started a new conversation Serialization Of Closure Failed: Serialization Of 'Illuminate\Http\UploadedFile' Is Not Allowed

    public function multiplemailsend(Request $request)

    {        
    
          $stream=$request->get('stream_name');
    
          
    
          $array=([
    
              'title'=>$request->title,
    
              'body'=>$request->body, 
    
              'file'=>$request->file,           
    
          ]);
    
                  
    
          $data=Registration::where('stream_id','=',$stream)->pluck('email');          
    
    
    
          foreach($data as $datas)
    
          \Mail::queue('email.email', ["name" => "vandan"], function($message) use($datas,$array)
    
          {              
    
              $message->to($datas)->subject($array['title']);
    
              $message->setbody($array['body']);
    
              $message->attach($array['file']);             
    
          });      
    
          return "Multiple Mail Send Successfully....";
    
    }
    
    11 Feb
    1 month ago

    vandan left a reply on Please Answer For This

    please show me your error

    vandan left a reply on SerializableClosure.php(210) : Eval()'d Code Line 2:

    public function mailsend(Request $request)

    {
    
        // $result=\DB::select('select email from emails');
    
        $result=Email::all();
    
        \Mail::queue('emails.queued_email', ["name" => "vandan"], function($message) use($result)
    
        {
    
            foreach($result as $results)
    
            $message->to($results->email)->subject('Hii How Are You..?');
    
            // $message->to('[email protected]','vandan')->subject('Welcome...');            
    
        });
    
        return 'Email Will Be Sent In 5 Seconds...';
    
    }
    

    vandan started a new conversation SerializableClosure.php(210) : Eval()'d Code Line 2:

    Undefined property: Illuminate\Database\Eloquent\Collection::$email

    here is my code

    public function mailsend(Request $request)

    {

        $result=Email::all();
    
        \Mail::queue('emails.queued_email', ["name" => "vandan"], function($message) use($result)
    
       {
    
           $message->to($result->email)->subject('Welcome...');
    
           // $message->to('[email protected]','vandan')->subject('Welcome...');            
    
       });
    
       return 'Email Will Be Sent In 5 Seconds...';
    

    }

    09 Feb
    1 month ago

    vandan left a reply on Mail Delivery Configuration.

    I got solution. Run this command and it update .env configuration cache.

    php artisan config:cache

    Now Mail::send & Mail::queue were sending as configured in .env.

    vandan left a reply on Laravel Authentication "standard"

    Overwrite the function getCredentials() in AuthController:

    protected function getCredentials(Request $request)

    {

    return [
    
        $this->loginUsername() => $request->input($this->loginUsername()),
    
        'password' => $request->input('password'),
    
        'active' => true
    
    ];
    

    }

    vandan left a reply on Laravel Authentication "standard"

    protected function getCredentials(Request $request)

    {

    return [
    
        $this->loginUsername() => $request->input($this->loginUsername()),
    
        'password' => $request->input('password'),
    
        'active' => true
    
    ];
    

    }