HimanshuRajvanshi

HimanshuRajvanshi

laravel Developer at Delhi

Member Since 10 Months Ago

Roorkee

Experience Points
7,050
Total
Experience

2,950 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
60
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.

Level 2
7,050 XP
Oct
25
3 weeks ago
Activity icon

Started a new Conversation How To Use Cookie-free Domains In Laravel

I create a website on laravel but when I test this website into gtmetrix.com this show me "Use cookie-free domains" please guide me how can I do that.

Oct
12
1 month ago
Activity icon

Replied to How To Insert Multiple Row Images Using Js And Laravel 5.8

In to blade you have to use

make sure you have use array into blade.

Oct
09
1 month ago
Activity icon

Replied to Undefined Variable: MasterStockist

in function check you are getting data or not

public function index() { $masterStockist = User::where('role_id', 2)->get(); dd($masterStockist); return view('masterStockist.index',compact('masterStockist')); }

like this

Activity icon

Replied to Deploy My Laravel App

If you are a beginner and don't want to spend money then can use Heroku

for more into go throw link

https://medium.com/@sdkcodes/how-to-deploy-a-laravel-app-to-heroku-24b5cb33fbe

Activity icon

Replied to Laravel Excel, Store It To Storage Directory.

If you want to use a custom storage path (e.g. to separate the files per client), you can set the folder as the second parameter.

->store('xls', storage_path('excel/exports'));

or

use ->store($ext, $path = false, $returnInfo = false) or ->save().

for more information please go throw link

https://docs.laravel-excel.com/2.1/export/store.html

Oct
04
1 month ago
Activity icon

Replied to Laravel Error

composer config repositories.packagist.org composer https://repo-eu-uk-1.packagist.org

This should force to use the UK mirror which is hopefully unaffected by those network issues.

Accessing the mirror URL directly is kind of a hack though and not guaranteed to work in the future, so I would advise you to remove it in the coming days once this network glitch hopefully passes.. You can do so using:

config repositories.packagist.org --unset

Activity icon

Replied to Table Migration Social Account

@davy_yg Do aother way Into you migraton add this line --->Schema::dropIfExists('users');

change table name according to your table name.

public function up() { Schema::dropIfExists('users'); Schema::create('users', function (Blueprint $table) { $table->increments('id'); $table->string('name'); $table->string('email')->unique(); $table->string('password'); $table->rememberToken(); $table->timestamps(); }); }

Activity icon

Replied to Table Migration Social Account

@davy_yg Do one more think

composer update

Activity icon

Replied to Table Migration Social Account

Add the following code in AppServiceProvider.php

L6_root/app/Providers/AppServiceProvider.php The code block

use Illuminate\Support\Facades\Schema;

public function boot() { Schema::defaultStringLength(191); }

Activity icon

Replied to Calculate Years Beetwen Two Dates

You can use carbon in laravel for play with Dates.

Oct
03
1 month ago
Activity icon

Replied to SQLSTATE[23000]: Integrity Constraint Violation: 1048 Column 'company_photo' Cannot Be Null

Into DB you have to make company_photo this filed as a null or another way is that you have to check into the controller you are getting the image or not by dd. make sure you are using into form 'enctype' => 'multipart/form-data' this.

Oct
01
1 month ago
Activity icon

Replied to How To Get Route Url Id

@maximus1 have you add this line into your route ->

Route::Post('/add_answer/{id}','[email protected];);

Activity icon

Replied to How To Get Route Url Id

If your url is like this http://127.0.0.1/my_homework/add_answer/9.

you have to add this into your route file like ->Route::Post('/add_answer/{id}','[email protected];);

or into your controller you have to get id like this->

public function store(Request $request,$route_id) { $homeworkanswer = new \App\HomeworkAnswer(); $homeworkanswer->date = $request->date; $homeworkanswer->student_id = get_studentid(); $homeworkanswer->homework_id = $route_id; $homeworkanswer->myanswer = $request->myanswer; $homeworkanswer->save(); }

Sep
24
1 month ago
Activity icon

Replied to Why Laravel Is The Recommended Framework For Secure Applications

@jaytee Yes you are right I read this article and understand all points but I also wanna know more about laravel Secure and how laravel protect the application.

Sep
23
1 month ago
Activity icon

Started a new Conversation Why Laravel Is The Recommended Framework For Secure Applications

Please give me another example rest of following I want to know more why laravel website is secure.

1.Protecting Laravel Applications from SQL Injection.

2.Protecting Cookies on Laravel Applications.

3.Cross-Site Request Forgery (CSRF) Protection on Laravel

4.Mass Assignment Vulnerabilities on Laravel

5.Laravel Authentication System.

6.your ans...

Activity icon

Started a new Conversation :attributes Is Not Updated When I Change My Website Language

I am using waavi package for language change everything is working fine when I change Website language but when error messages come that time those attributes Is not change.I try so many thing

$attributes = [ 'first_name' => 'first_names',

Sep
18
2 months ago
Activity icon

Replied to Homework Question

Thanks @snapey

Activity icon

Started a new Conversation :attributes Is Not Changing

Actually I try to change my website language everything is work properly but when required fields show an error message that time I need to change the attributes name according to language Error message show into what language User select but: attributes are not changing.

I am using Waavi/translation laravel package and I want to change attributes but it is not working I already try

public function attributes() { return [ 'email' => 'email address', ]; }

Activity icon

Replied to Homework Question

{{ $username }} show data with html tags and {!! $username !!} this will remove html tage if value have those tag

Sep
16
2 months ago
Activity icon

Replied to I Get Different Response In Different Server

Check file have proper permission on the server or also check PHP version.

Activity icon

Replied to Convert 'DD/MM/YYYY' Format To Timestamp

$input = '16/09/2019'; $format = 'DD/MM/YYYY';

$date = Carbon\Carbon::createFromFormat($format, $input)

Activity icon

Replied to Laravel How To Disable Login Page Auth::routes(['login' => False]);

@snapey and how I will remove Login route from page Auth::routes(['login' => false]); this is not working

Activity icon

Replied to Laravel How To Disable Login Page Auth::routes(['login' => False]);

@siangboon you are right but in need registration on my website but for now I don't need login system.

Activity icon

Started a new Conversation Laravel How To Disable Login Page Auth::routes(['login' => False]);

When I try this for registation this is working but I want to remove login page this is not working Please guide me what going on.

Sep
12
2 months ago
Activity icon

Replied to Upgrade To Laravel 5.7 Problem Consuming Own API With Passport

In which directory is your HintsApiController? Because it looks like you need to change

'namespace' => 'API' to

'namespace' => 'App\Http\Controllers\API'

Activity icon

Replied to I Upgrade From 5.6 To 5.7 Then All My Api Not Working

@omda try this

Update your laravel/framework dependency to 5.7.* in your composer.json file.

If you are using Laravel Passport, you should update your laravel/passport dependency to ^7.0 in your composer.json file.

Activity icon

Started a new Conversation Laravel 6.0 Why We Are Using Vuejs Please Tell Me What Is Internally Benefit.

I am new into Laravel and a little bit confused why we are using it

Activity icon

Replied to I Upgrade From 5.6 To 5.7 Then All My Api Not Working

Please make sure are you using ->namespace App\Http\Controllers\API; into HintsApiController .