Van1310

Van1310

Laravel Developer at Byte and Bits At Ahmedabad

Member Since 1 Year Ago

bhavnagar

Experience Points
29,800
Total
Experience

200 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
127
Lessons
Completed
Best Reply Awards
11
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 6
29,800 XP
Nov
19
15 hours ago
Activity icon

Replied to How To Store Notification In Laravel

@sinnbeck yes thank sir its working but my data was store like i have two field first id and second name

so id store id field in notification table and name store name field in notification so how can i do it?

now record store like

id: 0ddc7a90-854f-4b94-8721-119ea80f0d4d type: App\Notifications\Myfirstnotification notifiable type: App\Pg data: {"user_id":"4"}

i have data field in value so how can i do it

Activity icon

Replied to How To Store Notification In Laravel

@sinnbeck oh ya i forgot this line

but then i click to submit then try error

Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required "

Activity icon

Replied to How To Store Notification In Laravel

yes @sinnbeck

$data = Pg::first();
Activity icon

Replied to How To Store Notification In Laravel

i try this but error

Call to undefined method App\Pg::notify

i m using database notification

here is my controller code

$details = ['name'=>$approve,
                'body'=>'Name Change Has Been Approved',
                'user_id'=>$id];

    $data->notify(new Myfirstnotification($details));

here is my notification file

 use Queueable;

private $details;

public function toMail($notifiable)
    {
        return (new MailMessage)
                ->line($this->details['name'])
                ->line($this->details['body']);
    }

public function toArray($notifiable)
    {
        return [
                'user_id' => $this->details['user_id']];
    }
Activity icon

Replied to Fetch Eamil_verifed Or Not From Users Table In Laravel

@neeraj1005

try this

@if(\Auth::user()->email_verified_at == 'NULL')
        Not Verified
@else
    verified
@endif
Activity icon

Started a new Conversation How To Store Notification In Laravel

i want to try when my data update then change data as view notification so how to store notification

i have multiple tables whenever i update data then save notification same like as facebook or any communication application so how can i do it please share some reference

thank you

Nov
13
6 days ago
Activity icon

Replied to Class 'Maatwebsite\Excel\ExcelServiceProvider' Not Found

thank you sir i try to solve last 2 hour but not find solution thanks sir its working

Nov
12
1 week ago
Activity icon

Started a new Conversation Class 'Maatwebsite\Excel\ExcelServiceProvider' Not Found

hello guys when i remove maatwebsite package but when i try to composer update then error like

In ProviderRepository.php line 208:
Class 'Maatwebsite\Excel\ExcelServiceProvider' not found

config->app.php i remove this two alias and providers but same error class not found please guys suggest how can i do this?

Activity icon

Replied to Undefined Variable: Uid1

@sergiu17 thank you so much sir its working

Activity icon

Started a new Conversation Undefined Variable: Uid1

i send mail but error like Undefined variable: uid1

here is my controller file

public function pg_store(Request $request)
{
     $email = $request->get('email');
     $arrayKeys = array_keys($email);
         $uemail=$email[$arrayKeys[0]];
    
    $uid = str_random(8);
    $uid1 = ['unique_id'=>$uid];
    
    \Mail::send('mail.email',["name" => "PG-MANAGMENT"], function($message) use($uid1,$uemail){
                $message->to($uemail);
                $message->from('[email protected]');
            });
}

here is my blade file

    Unique Code : {{$uid1['unique_id']}} <br>
            Email : {{$uemail}}

but when mail send then error in blade file like Undefined variable: uid1 how to pass variable in blade file ?

Nov
11
1 week ago
Activity icon

Replied to Password & Confirm Password Error

yes sir thanks @nakov its wotking

Activity icon

Replied to Password & Confirm Password Error

sure sir

web.php

Route::post('pgmanagment/confirmpassword',array('as'=>'confirmpassword','uses'=>'Session\[email protected]_register'));

here is my controller

public function pg_register(ConfirmpasswordRequest $request)
{
     $uniqueid = $request->get('uniqueid');

        \DB::table('pgs')
            ->where('unique_id','=',$uniqueid)
            ->update(['password'=>bcrypt($request->get('password'))]);
}
Activity icon

Replied to Password & Confirm Password Error

ok sir

<form method="post" action="{{route('confirmpassword')}}" >
    {{csrf_field()}}    
    <input type="password" name="password" placeholder="password">  
    <input type="password" name="password_confirmation" placeholder="confirm_password"> 
    <input type="submit'>   
</form>

yes i use post method

Activity icon

Replied to Password & Confirm Password Error

@nakov yes sir i try this but same error when enter wrong password

return [
         'password' => 'required|confirmed'
        ];
Activity icon

Replied to Password & Confirm Password Error

@nakov

yes i try this but same error

return [
         'password' => 'required|confirmed',
            'password_confirmation' => 'required'
        ];


<input type="password" name="password_confirmation">
Activity icon

Started a new Conversation Password & Confirm Password Error

when i try to set validation using request in password and confrim password, when i enter password "abc" and confirm password "abc2" then redirect to error like Symfony \ Component \ HttpKernel \ Exception \ MethodNotAllowedHttpException No message

but when enter correct password then working so please when i enter wrong password so how to validate proper message

here is my request

public function rules()
    {
        return [
            'password' => 'required',
            'confirmed' => 'required|same:password'
        ];
    }

here is my form

<input type="password" name="password" placeholder="password">
<input type="password" name="confirmed" placeholder="confirm_password">
Nov
08
1 week ago
Activity icon

Started a new Conversation Generate Pdf Using Javascript

how to generate pdf using javascript only record can download in pdf

i so many links can try but cant find solution please help me

i have one table in which record can download as pdf how can i download

Nov
07
1 week ago
Activity icon

Replied to Array To String Conversion Error

@tykus yes i declared pg_store(Request $request )

Activity icon

Replied to Array To String Conversion Error

yes i return $data its return of

{"unique_id":"5K1sKs"}

so how can i do this ?

Activity icon

Started a new Conversation Array To String Conversion Error

when i try to store unqiue id then error like Array to string conversion

here is my controlller

public function pg()
    {
        $uid = str_random(6);
        return view('admin.pages.pg.addpg',compact('uid'));
    }

public function pg_store()
    {
     $data = new Pg(array(
        'unique_id'=>$request->get('unique_id'),
        ));
            $data->save();
        return back();
    }

here is my blade file

<input type="hidden" name="unique_id" value="{{$uid}}">
.....

here is my migration

$table->string('unique_id')->unique();
Oct
22
4 weeks ago
Activity icon

Replied to Call To A Member Function ToArray() On Array

@nakov yes i can try this its working thanks sir

Activity icon

Replied to Call To A Member Function ToArray() On Array

@sinnbeck oh yes but so how i can valdiate my email field ?

Activity icon

Started a new Conversation Call To A Member Function ToArray() On Array

when i import csv file then not import duplicate email so i want some validation in import file but error

here is my code

<?php

namespace App\Imports;

use App\Library;
use Maatwebsite\Excel\Concerns\ToModel;
use Illuminate\Support\Facades\Validator;

class libraryImport implements ToModel
{
        /**
        * @param array $row
        *
        * @return \Illuminate\Database\Eloquent\Model|null
        */
        public function model(array $row)
        {
            Validator::make($row->toArray(), [
                    '*.2' => 'required|email|unique:libraries,mail',
            ])->validate();

            return new Library([
                'id'        => $row[0],
                'name'      => $row[1],
                'mail'      => $row[2],
                'owner'     => $row[3],
                'contact_no' => $row[4],
                'address'   => $row[5],
                'status'    => $row[6],
                // 'password' => \Hash::make('123456'),
            ]);
        }
}
Oct
21
4 weeks ago
Activity icon

Awarded Best Reply on Class 'ZipArchive' Not Found

@ftiersch @sinnbeck thank you so much for helping me

i have run this command to zip file installation

sudo apt-get install php-zip and its working

Activity icon

Replied to Class 'ZipArchive' Not Found

@ftiersch @sinnbeck thank you so much for helping me

i have run this command to zip file installation

sudo apt-get install php-zip and its working

Activity icon

Replied to Class 'ZipArchive' Not Found

@sinnbeck

sorry but i cant find php7.2 zip file can you please share link how to download 7.2 zip file

Activity icon

Replied to Class 'ZipArchive' Not Found

@sinnbeck yes i try this but noting same error

Activity icon

Replied to Class 'ZipArchive' Not Found

@ftiersch

yes try this but error when try to install php 7.3

Command line option --enable-zip is not understood in combination with the other options

Activity icon

Started a new Conversation Class 'ZipArchive' Not Found

i try to file export but zipArchive error

here is my controller code

public function export() 
{
        return Excel::download(new libraryExport, 'library.xlsx');
    }

here is my libraryexport file

public function collection()
    {
        return Library::all();
    }
Oct
15
1 month ago
Activity icon

Replied to Illuminate\Database\QueryException : Could Not Find Driver

i done already but phase same error nothing work

Activity icon

Started a new Conversation Illuminate\Database\QueryException : Could Not Find Driver

hello everyone i need some help when i try to php artisan migrate then error like at /opt/lampp/htdocs/blo3/vendor/laravel/framework/src/Illuminate/Database/Connection.php: 664 660: // If an exception occurs when attempting to run a query, we'll format the error 661: // message to include the bindings with SQL, which will make this exception a 662: // lot more helpful to the developer instead of just the database's errors. 663: catch (Exception $e) { 664: throw new QueryException( 665: $query, $this->prepareBindings($bindings), $e 666: ); 667: } 668: 669: return $result;

Exception trace:

1 Doctrine\DBAL\Driver\PDOException::("could not find driver") /opt/lampp/htdocs/blo3/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php : 31

2 PDOException::("could not find driver") /opt/lampp/htdocs/blo3/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php : 27

Illuminate\Database\QueryException : could not find driver (SQL: select * from information_schema.tables where table_schema = blog and table_name = migrations)

Oct
10
1 month ago
Activity icon

Replied to How To Install Apache Local Server In Ubuntu ?

yes my server only is accessible on localhost but its not working apache server not working

Activity icon

Replied to How To Install Apache Local Server In Ubuntu ?

@sinnbeck

Your connection is not private

can you suggest another server to i install

Activity icon

Started a new Conversation How To Install Apache Local Server In Ubuntu ?

i have ubuntu system so i can't install apache localhost server

please suggest how to install apache server in ubuntu ?

Oct
03
1 month ago
Activity icon

Replied to Emp_photo Stores In Database But Not In Public/emp_photos Folder

then try after show me its work or not?