raviSoni

raviSoni

Member Since 4 Months Ago

Experience Points
730
Total
Experience

4,270 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
0
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 1
730 XP
Jan
14
3 days ago
Activity icon

Replied to Array In Cloumn Of A Database

Thank You for your answer

Activity icon

Replied to Array In Cloumn Of A Database

my database is phpmyadmin and if this database stores a array or whatever you are saying then ,how can i do this ??

Thanks in advance

Jan
09
1 week ago
Activity icon

Started a new Conversation Array In Cloumn Of A Database

Basically i have an column in my table this column stores one value at a time but i need to insert more than one value in it like an array [1,2,3,4]

i have an admin panel laravel voyager and my laravel version is 5.8

Thanks in advance

Activity icon

Replied to Fetching Data From A Pivot Table And Link It With A Column Of Another Table

Basically i want to add more than one hotel type like

1. Hotel {id: 1, name: "Burj Al Arab", type: "luxury type","Bar","Family Restraunt"}

not the other columns in hotel_types table.

hope you get this
Jan
08
1 week ago
Activity icon

Replied to Fetching Data From A Pivot Table And Link It With A Column Of Another Table

i already did this the pivot table hotel_venue contain hotel_id (foreign key for hotel table) and venue_themes_id(foreign key for venue_themes table)

Activity icon

Replied to Fetching Data From A Pivot Table And Link It With A Column Of Another Table

yes i also did the same but in my case i just change the name from->hotel_types to venue_themes

Activity icon

Replied to Fetching Data From A Pivot Table And Link It With A Column Of Another Table

yes my question is how i can link these table to the column of hotel table and the hotel_types column can carry only single data but i need to store multiple data in this column is there any way to store multiple value in this column

Thanks in advance again

Jan
07
1 week ago
Activity icon

Started a new Conversation Fetching Data From A Pivot Table And Link It With A Column Of Another Table

Hello everyone Basically my tables structure are

  1. Hotels [id,hotel_name,hotel_types] (Main Table)
  2. venue_themes [id,name] (Main Table)
  3. hotel_venues [id,hotel_id,venue_themes_id] (pivot table)

the hotel_types column is linked to my view and the main reason for creating pivot table is in the hotel_types we can store only a single value but we need more then one value for hotel_types column

what i want

a single hotel may have multiple venue themes

Thanks in advance

Nov
04
2 months ago
Activity icon

Replied to Problem In Uploading A File

Thanks It is working.

Activity icon

Replied to Problem In Uploading A File

But that is file extension variable

Nov
01
2 months ago
Activity icon

Replied to Problem In Uploading A File

@munazzil @sinnbeck Driver [] is not supported.

Activity icon

Replied to Problem In Uploading A File

<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class RequestQuote extends Model
{
    use SoftDeletes;

    protected $table = 'request_quotes';

    protected $hidden = [

    ];

    protected $guarded = [];

    protected $dates = ['deleted_at'];
}
Activity icon

Replied to Problem In Uploading A File

<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Default Filesystem Disk
    |--------------------------------------------------------------------------
    |
    | Here you may specify the default filesystem disk that should be used
    | by the framework. The "local" disk, as well as a variety of cloud
    | based disks are available to your application. Just store away!
    |
    */

    'default' => env('FILESYSTEM_DRIVER', 'local'),

    /*
    |--------------------------------------------------------------------------
    | Default Cloud Filesystem Disk
    |--------------------------------------------------------------------------
    |
    | Many applications store files both locally and in the cloud. For this
    | reason, you may specify a default "cloud" driver here. This driver
    | will be bound as the Cloud disk implementation in the container.
    |
    */

    'cloud' => env('FILESYSTEM_CLOUD', 's3'),

    /*
    |--------------------------------------------------------------------------
    | Filesystem Disks
    |--------------------------------------------------------------------------
    |
    | Here you may configure as many filesystem "disks" as you wish, and you
    | may even configure multiple disks of the same driver. Defaults have
    | been setup for each driver as an example of the required options.
    |
    | Supported Drivers: "local", "ftp", "sftp", "s3", "rackspace"
    |
    */

    'disks' => [

        'local' => [
            'driver' => 'local',
            'root' => storage_path('app'),
        ],

        'public' => [
            'driver' => 'local',
            'root' => storage_path('app/public'),
            'url' => env('APP_URL').'/storage',
            'visibility' => 'public',
        ],

        's3' => [
            'driver' => 's3',
            'key' => env('AWS_ACCESS_KEY_ID'),
            'secret' => env('AWS_SECRET_ACCESS_KEY'),
            'region' => env('AWS_DEFAULT_REGION'),
            'bucket' => env('AWS_BUCKET'),
            'url' => env('AWS_URL'),
        ],

    ],

];
Activity icon

Replied to Problem In Uploading A File

I am following this tutorial https://youtu.be/7ZGFWvunoxw

I have made changes according to you but still error is same:-

Driver [] is not supported.

Activity icon

Replied to Problem In Uploading A File

I think these lines save data into database

Activity icon

Replied to Problem In Uploading A File

no i am following a tutorial according to that tutorial this function is written

Activity icon

Started a new Conversation Problem In Uploading A File

Hello everyone i need to upload a file in database but i got error

my view file is

<div class="modal-content">
 <div class="modal-header">
 <button type="button" class="close" data-dismiss="modal">&times;</button>
   <h4 class="modal-title">File upload form</h4>
    </div>
    <div class="modal-body">
    <!-- Form -->
    <form method="post" action="{{ route('upload.file') }}" enctype="multipart/form-data">
    {{ csrf_field() }}
    Select file : <input type='file' name='file' id='file' class='form-control' ><br>
    <input type='submit' class='btn btn-info' value='Upload' id='upload'>
    </form>
    </div>

my controller is

public function store(Request $request) { if($request->hasFile('file')) {

        $filename = $request->file->getClientOriginalName();
        $fileExtension=$request->file->getClientOriginalExtension();
        $request->file->storeAs('public/storage',$filename,$fileExtension);
        $file = new File;
        $file = save();
        return 'yes';
    }
    return $request->all();
}
public function showUploadForm()
{
    return view('vendorQuote_details');
}

my route is

Route::get('file','[email protected]')->name('upload.file');
Route::post('file','[email protected]');
Oct
23
2 months ago
Activity icon

Replied to Password Validation Does Not Working

my controller file is

        //dd($data);
        $request->validate([
           'fullname' => 'required|min:5|max:255',
           'password' => 'required|min:8',
            'password_confirmation' => 'required|same:password',
        ]);
       $values = array(
            "fullname" => $data['fullname'],
            "email" => $data['email'],
            "number" => $data['mobile'],
            "password" => md5($data['password']),
            "hotel_id"=>$data['hotel_name'],
            "created_at"=>date("Y-m-d H:i:s"),
            "updated_at"=>date("Y-m-d H:i:s")
);
Activity icon

Replied to Password Validation Does Not Working

my view file is

<input type="password" name="password" class="form-control" id="vpassword"  data-toggle="tooltip" title="Password" placeholder="Password" required="">
</div>

<div class="form-group">
<input type="password" name="password" class="form-control" id="vpassword_confirmation"  data-toggle="tooltip" title="Re-type Password" placeholder="Re-type Password" required="">
<br>
Activity icon

Started a new Conversation Password Validation Does Not Working

Hello everyone i am doing a form validation but it does not working properly. I have created two input fields one for password and second for password confirmation. But it does not working properly.

Oct
03
3 months ago
Activity icon

Replied to How I Can Store Data In Customise Table After Google Authentication

yes i am following same tutorial and according to this tutorial all the data is stored in "users" table. and i am already said that this tutorial is prefectly running in a fresh application but when i tried to use same in my application is either shows error

"Argument 1 passed to Illuminate\Auth\SessionGuard::login() must implement interface Illuminate\Contracts\Auth\Authenticatable, null given, called in C:\xampp\htdocs\5.8ebookmyvenue\vendor\laravel\framework\src\Illuminate\Auth\AuthManager.php on line 297"

or

data is stored in "users" table.

Thanks in advance

Activity icon

Replied to A User Can Access Home Page Without Authentication

no this is not working any other option ??

Sep
30
3 months ago
Activity icon

Replied to How I Can Store Data In Customise Table After Google Authentication

it doesn't help. any other option ??

Activity icon

Replied to How I Can Store Data In Customise Table After Google Authentication

i am doing this because all of users data is stored in "new_users" table. and at the time of login i also need to fetch data from "new_users" table.

Sep
28
3 months ago
Activity icon

Replied to How I Can Store Data In Customise Table After Google Authentication

i am getting this error.

Argument 1 passed to Illuminate\Auth\SessionGuard::login() must implement interface Illuminate\Contracts\Auth\Authenticatable, null given, called in C:\xampp\htdocs\5.8ebookmyvenue\vendor\laravel\framework\src\Illuminate\Auth\AuthManager.php on line 297

Activity icon

Replied to How I Can Store Data In Customise Table After Google Authentication

Because in my application all the data of user is stored in this table. in "users" table admin data is stored.

Thanks in advance

Sep
25
3 months ago
Activity icon

Replied to How I Can Store Data In Customise Table After Google Authentication

There is already a variable in user.php which is protected $table ='users';

and if i declare a variable again protected $table ='new_users';

it shows an error "cannot redeclare table variable"

Sep
24
3 months ago
Activity icon

Replied to How I Can Store Data In Customise Table After Google Authentication

my controller is

public function redirect()
{
    return Socialite::driver('google')->redirect();
}
/**
 * Return a callback method from google api.
 *
 * @return callback URL from google
 */
public function callback(SocialGoogleAccountService $service)
{
    $user = $service->createOrGetUser(Socialite::driver('google')->user());
    auth()->login($user);
    return redirect()->to('/');
}
Activity icon

Started a new Conversation How I Can Store Data In Customise Table After Google Authentication

I have asked this question earlier also but didn't get any valid answer so could you help me my model is class SocialGoogleAccount extends Model {

protected $fillable = ['user_id', 'provider_user_id', 'provider'];

public function newuser()
{
    return $this->belongsTo(User::class);
}

}

now all data is stored in 'users' table but i have to store this data in 'new_users' table what should i do.

Activity icon

Replied to How To Store Data After Google Authentication In Laravel 5.8

Basically i have two tables Users and New_users. I want to store data in New_users table but data is stored in Users table by default what to do ??

My laravel version is 5.8

Activity icon

Replied to How To Store Data After Google Authentication In Laravel 5.8

This is my model for google authentication

use Illuminate\Database\Eloquent\Model;

class SocialGoogleAccount extends Model { protected $fillable = ['user_id', 'provider_user_id', 'provider']; public function user() { return $this->belongsTo(User::class); } }

Sep
23
3 months ago
Activity icon

Started a new Conversation How To Store Data After Google Authentication In Laravel 5.8

I have created a google authentication for my application but users name and email id is not storing in my desired table what to do ??

Sep
20
3 months ago
Activity icon

Replied to Laravel How To Send Email On New User Registration Only To Admin Email

hey there this issue is resolved i have an another question can you help me out ???

Activity icon

Replied to A User Can Access Home Page Without Authentication

my laravel version is 5.8

Activity icon

Started a new Conversation A User Can Access Home Page Without Authentication

Basically what i want to do , I am creating a Ecommerce website but when i run a command php artisan ui:auth it creates all neccessary files but main problem is it can't allow a user to access homepage without login or registration what to do ???

Sep
13
4 months ago
Activity icon

Replied to Laravel How To Send Email On New User Registration Only To Admin Email

How can i get newly registered user mail id for sending confirmation mail