atif123

atif123

Member Since 2 Months Ago

Experience Points
2,040
Total
Experience

2,960 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
2,040 XP
Oct
25
3 weeks ago
Activity icon

Started a new Conversation Why My Value Is Not Showing

view

            <div class = "card-body">
                <form action = "{{route('popupupdate')}}" method="post">
                    @csrf
                    @method('PUT')
                    <div class="form-group">
                        <label for="comment"><b>Notice</b></label>
                        <textarea name = "content" class="form-control" rows="5" id="comment">{{ $popups->id }}</textarea>
                    </div>

controller

    public function edit()
    {
        return view("modal/edit")->with('popups',Popup::all());
    }

Error


Facade\Ignition\Exceptions\ViewException
Property [id] does not exist on this collection instance. (View: /opt/lampp/htdocs/bloominglotus/resources/views/modal/edit.blade.php)
http://localhost/bloominglotus/public/home/edit/4 
Activity icon

Started a new Conversation Why It Is Not Updating My Data

view

                <form action = "{{route('popupupdate')}}" method="post">
                    @csrf
                    @method('put')
                    <div class="form-group">
                        <label for="comment"><b>Notice</b></label>
                        <textarea name = "content" class="form-control" rows="5" id="comment"></textarea>
                    </div>
                    <div class="form-group form-check">
                        <label class="form-check-label">
                            <input class="form-check-input" type="checkbox" name="show"> Show
                        </label>
                    </div>
                    <button type = "submit" class = "btn btn-success">Update</button>
                </form>

controller

    public function update(Request $request, Popup $popup)
    {
        $popup->content=$request->content;
        $popup->save();
        return redirect('home');
    }

route

Route::post('home/update','[email protected]')->name('popupupdate');

Activity icon

Replied to Why Cannot I Save On Off Value Of Checkbox

i have provided default value to 0 but it is showing error

Illuminate\Database\QueryException SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'show' cannot be null (SQL: insert into popups (content, show, updated_at, created_at) values (red, ?, 2019-10-25 12:34:17, 2019-10-25 12:34:17))

Activity icon

Started a new Conversation Why Cannot I Save On Off Value Of Checkbox

Database


            $table->string('show')->default('off');

Controller

    public function store(Request $request)
    {
        $popup=Popup::create([
            'content'=>$request->content,
            'show'=>$request->show
        ]);
        return redirect(route('home'));
    }

View

                    <div class="form-group form-check">
                        <label class="form-check-label">
                            <input class="form-check-input" type="checkbox" name="show"> Show
                        </label>
                    </div>
Oct
21
4 weeks ago
Activity icon

Replied to While Pushing Project In Github It Is Showing Error

[email protected]: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

Activity icon

Replied to While Pushing Project In Github It Is Showing Error

cannot i push with root access

Oct
18
1 month ago
Activity icon

Started a new Conversation While Pushing Project In Github It Is Showing Error

[email protected]:/opt/lampp/htdocs/discussionforum# ^C [email protected]:/opt/lampp/htdocs/discussionforum# git push -u origin master [email protected]: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

i have set ssh key in github

Oct
07
1 month ago
Activity icon

Started a new Conversation Undefined Class Markdown

<div class = "card-body">
            <h3 class = 'text-center'>{{$discussion->title}}</h3>
            <div class = "card-text">
{{--                            {{ str_limit($discussion->content,'10') }}--}}

               {!! Markdown::convertToHtml($discussion->content) !!}

            </div>

        </div>

I have to done according to https://github.com/GrahamCampbell/Laravel-Markdown but it is showing Undefined class Markdown

Oct
06
1 month ago
Activity icon

Started a new Conversation Why It Is Showing Undefined Class View?

<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

use View;

use App\Channel;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        View::share('channels',Channel::all());
    }
}

Is my code ok

Activity icon

Replied to Why I Am Not Able To Migrate Database?

class Channel extends Model
{
    /*
    public function discussions()
    {
        return $this->hasMany(Discussion::class);
    }*/

if (\Schema::hasTable('channels')) {
$channels = Channel::all();
}

    protected $fillable=['name','slug'];

}
?> ```
getting error in syntax
Activity icon

Started a new Conversation Why I Am Not Able To Migrate Database?

Before copying this project everything was ok but after copying this project to another laptop I am not able to migrate the database error

Illuminate\Database\QueryException : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'discussionforum.channels' doesn't exist (SQL: select * from channels)

at /opt/lampp/htdocs/discussionforum/vendor/laravel/framework/src/Illuminate/Database/Connection.php:665 661| // If an exception occurs when attempting to run a query, we'll format the error 662| // message to include the bindings with SQL, which will make this exception a 663| // lot more helpful to the developer instead of just the database's errors. 664| catch (Exception $e) {

665| throw new QueryException( 666| $query, $this->prepareBindings($bindings), $e 667| ); 668| } 669|

Exception trace:

Oct
03
1 month ago
Activity icon

Started a new Conversation What Is The Meaning Of <a Href = "/forum?filter=me"

i did not understand the meaning of ?filter=me please explain it in depth

Sep
29
1 month ago
Activity icon

Started a new Conversation Call To Undefined Function App\Http\Controllers\str_slug()

why it is showing error i recently have added str_slug


  public function store(Request $request)
    {
        Discussion::create([
            'user_id'=>Auth::id(),
            'title'=>$request['title'],
            'content'=>$request['describe'],
            'channel_id'=>$request['channel_id'],
            'slug'=>str_slug($request->title),
        ]);

Sep
28
1 month ago
Activity icon

Started a new Conversation How To Make A Popup Like This Website?

When a user visit this site?How to make popup like this https://www.onlinekhabar.com/2019/09/799909

Sep
22
1 month ago
Activity icon

Started a new Conversation Why Helper Function Str_limit Is Not Supporting?

        <div class = "card-text">
            {{ str_limit($discussion->content,'10') }}
        </div>
Sep
21
1 month ago
Activity icon

Replied to Why Image Is Not Showing In Post?

While inspecting it is showing but image is not showing everything is right

<img src="http://localhost/avatarprogrammer.png">

Activity icon

Replied to Why Image Is Not Showing In Post?

The path is stored in database but why my image is not showing in webpage

Activity icon

Started a new Conversation Why Image Is Not Showing In Post?

I am pulling image from public but it is not showing

    public function run()
    {
        User::create([
           'name'=>'milan',
           'email'=>'[email protected]',
           'password'=>bcrypt('0ffline1'),
            'admin'=>1,
            'image'=>asset('avatarprogrammer.png'),
        ]);
    }
Activity icon

Replied to Why OrderBy Is Not Working??

it worked but how did it worked after putting get?

Activity icon

Started a new Conversation Why OrderBy Is Not Working??

Not showing anything
 
controller
    public function index()
    {
        $discussions = Discussion::orderBy('created_at','desc');
        return view('forum')->with('discussions',$discussions);
    }

view

  @foreach($discussions as $d)
    <div class = "card">
        <div class = "card-header">Milan</div>
        <div class = "card-body">{{$d->content}}</div>
    </div>
  @endforeach
Sep
19
1 month ago
Sep
17
2 months ago
Activity icon

Replied to Why My Post Is Not Deleting

ok i understood but why it is not supporting

<form action = "{{route('channel.destroy',$channel->id)}}" method = "delete"> @csrf <button type = "submit" class = "btn btn-danger ">Delete</button>

Sep
16
2 months ago
Activity icon

Started a new Conversation Why My Post Is Not Deleting

`<td><a href = "{{route('channel.destroy',$channel->id)}}" class = "btn btn-danger">Delete</a></td>`

controller
 Channel::destroy($id);

Activity icon

Replied to What Type Of Website Is Evil.com?

this website does not have about section

Sep
15
2 months ago
Activity icon

Started a new Conversation What Type Of Website Is Evil.com?

In open redirect vulnerability why mostly people use evil.com

Sep
14
2 months ago
Activity icon

Replied to How To Make Background Automatic Zoomin And Change The Picture

i know css and js i have done 3-4 project

Sep
12
2 months ago
Activity icon

Started a new Conversation How To Give Picture Location From Css File In Laravel?

this file is saved in public/css/home/main.css ''' background: url{{('image/clock-background.jpeg')}}), center no-repeat; '''

Activity icon

Replied to How To Add Favicon In Laravel

i have included code but why my code is removed

Activity icon

Started a new Conversation How To Add Favicon In Laravel

not working

Sep
11
2 months ago
Activity icon

Replied to HOw Where To Include Robot.txt File

can you tell me in further details

Activity icon

Started a new Conversation HOw Where To Include Robot.txt File

i am confused where to include robot.txt file

Sep
10
2 months ago
Activity icon

Replied to How To Add Css Inside {{ }}

only one white space is added

Activity icon

Replied to How To Add Css Inside {{ }}

{{ special event some space date}} how to do that

Activity icon

Replied to How To Add Css Inside {{ }}

{{ $event->event .left-padding:20px. $event->when}} not working

Activity icon

Replied to How To Add Css Inside {{ }}

I want to know is there any way to add css inside {{}}

Activity icon

Replied to How To Add Css Inside {{ }}

{{ }} inside this i want to add left padding

Activity icon

Started a new Conversation How To Add Css Inside {{ }}

{ $event->event . $event->when}}

Activity icon

Replied to Date Is Not Showing In Laravel

didn't worked Undefined variable: table (View: /opt/lampp/htdocs/COLLEGEPROJECT/todolist/resources/views/layouts/app.blade.php)

app.blade.php input type="date" id="date" name="date" value="{{ $table->date('when') }}"

controller store $event->when=$request['date'];

database $table->date('when');

Activity icon

Started a new Conversation Date Is Not Showing In Laravel

I am getting data from form and saving to database but user entered date is not storing

            blade
                            <div class = "form-group mt-3">
                                <label for = "date"><h5>When</h5></label><br>
                                <input type = "date" id = "date" name = "date">
                            </div>

            database
            $table->date('when');
Sep
08
2 months ago
Activity icon

Started a new Conversation Datepicker Jquery Plugin Is Running But When Combine With Other Html Code It Is Not Running In Phpstorm

$(function() { $( "#datepicker" ).datepicker(); });

Activity icon

Replied to How To Add Google Map Like This Video Shown

It will be best if you provide me source code `

Activity icon

Replied to How To Make Image Zoom When Mouse Is Placed Over Like This Website

i know from css but i want to do with jquery plugin

Activity icon

Started a new Conversation How To Make Image Zoom When Mouse Is Placed Over Like This Website

I want to make image zoom when mouse is placed over it like this https://null-byte.wonderhowto.com/

jquery

Sep
07
2 months ago
Activity icon

Started a new Conversation How To Make Logged In User Can Only Search His Task From ALGOLIA

I am making todo web application. I want to make search box where only logged in user can see his task form ALGOLIA

public function search($searchkey)
{
    $users = User::search('$searchkey')->get();
    return $users;
    //return view('search',compact('users'));
}

Route::get('/search/{searchkey}','[email protected]')->name('search');

Sep
06
2 months ago
Activity icon

Replied to How To Add Google Map Like This Video Shown

I tried but not working like shown in video

Activity icon

Started a new Conversation How To Add Google Map Like This Video Shown

I want to add google map like this in my website https://www.youtube.com/watch?v=SjJyiJQVQs8

Activity icon

Replied to How To Save Task As Completed In Database

Can you provide code how to save in database without using ajax