vipin93

Self Coder at At home

Experience

48,840

50 Best Reply Awards

  • Member Since 2 Years Ago
  • 3 Lessons Completed
  • 0 Favorites

30th March, 2017

vipin93 left a reply on Having Trouble Redirecting From Create To Edit Pages • 3 hours ago

 public function edit($user= null, Request $request)
    {
        $user = $request->user()->id;
        $basics = Basic::findOrFail($user);
        return view('details/basics/edit', [
            "basics" => $basics,
            "user" => $user
        ]);
    }

vipin93 left a reply on Having Trouble Redirecting From Create To Edit Pages • 3 hours ago

change your route like this

Route::get('/details/basics/{user}/edit', [email protected]');

add this in your controller after store

return redirect()->to('/details/basics/' . $user.'/edit');

vipin93 left a reply on Migration Problem • 5 hours ago

delete manually all table from database included migration table and rerun php artisan migrate

vipin93 left a reply on Getting An Error I'm Not Supposed To • 6 hours ago

$author_id = auth()->guard('authors_admin')->user()->id; //u can not use 

another guard just use

$author_id = Auth::id(); //current guard id 

vipin93 left a reply on Getting An Error I'm Not Supposed To • 10 hours ago

$tests = getImagesArray($gh->image);

dd($tests); ? // lets see whats u getting 

vipin93 left a reply on Upload Files BLOB In DB • 10 hours ago

then u have to use nosql database like mongodb or sqlite google about that

vipin93 left a reply on Session Flash Message Timeout!! • 11 hours ago

laracasts/flash

vipin93 left a reply on Upload Files BLOB In DB • 11 hours ago

explain more

vipin93 left a reply on Getting An Error I'm Not Supposed To • 14 hours ago

ClientController line 233?

vipin93 left a reply on Getting An Error I'm Not Supposed To • 14 hours ago

where your controller

vipin93 left a reply on Getting An Error I'm Not Supposed To • 14 hours ago

what's what's your relationship and check also your middlware

vipin93 left a reply on Logic Issue • 14 hours ago

make relationships one to many

29th March, 2017

vipin93 left a reply on Helper To Retrive A Users Posts Checking Between Multple Dates. • 1 day ago

make sure u comparing in right format and what is format of ends_at u saved in databse

vipin93 left a reply on Many To Many Relationship Problem • 1 day ago


public function users()
{ 
return $this->belongsToMany('App\User');
 }

$user = User::with('roles')->find($id);

and use like 

@foreach ($user->roles as $role)
{{$role->name }}
@endforeach 

vipin93 left a reply on Insert Unique Entries Using Faker • 1 day ago

'lesson_id' => $facker->numberBetween(1,20),

vipin93 left a reply on Carbon Missing Leading Zero For Minutes • 1 day ago

format('H:i:s')

vipin93 left a reply on "Creating Default Object From Empty Value" In My ArticleRepository • 1 day ago

make sure field fillable in your model

vipin93 left a reply on Paginate With Where • 1 day ago

->where('user_id', 'LIKE', "%$id%")

vipin93 left a reply on Helper To Retrive A Users Posts Checking Between Multple Dates. • 1 day ago

$from, $to , what formate u using

vipin93 left a reply on Paginate With Where • 1 day ago

any errors

vipin93 left a reply on Store Comments In DB • 1 day ago

u mean u want to store galley comments and post comment in single comments table so if u using for galley then make post null and if u using for post then make galley null

vipin93 left a reply on Store Comments In DB • 1 day ago

modul_id and parent_id what this explain

vipin93 left a reply on Store Comments In DB • 1 day ago

use nullable

vipin93 left a reply on Ways To Implement A Search Textbox In Navigation Bar • 1 day ago

use view composer to implement so it will show in all page https://laracasts.com/series/laravel-from-scratch-2017/episodes/21

vipin93 left a reply on How To Add Search Box In My Form To Fetch Data From Database • 1 day ago

watch laravel 2017 from scratch, even u not clear about your question , without proper explanation and code we can not help it's pretty simple things u asking

vipin93 left a reply on Email Validation If Email Is Empty • 1 day ago

$validator = Validator::make($request->all(), [ 'name' => 'required', 'surname' => 'required', 'telephone' => 'required', 'email.*' => 'nullable|email' ]);

vipin93 left a reply on Migration • 1 day ago

php artisan make:migration create_tablename_table --create=tablename

https://laravel.com/docs/5.4/migrations

vipin93 left a reply on How To Add Search Box In My Form To Fetch Data From Database • 1 day ago

what of this mean, where your view and controller

vipin93 left a reply on Dropdown From Database • 1 day ago

that's another problem

vipin93 left a reply on Dropdown From Database • 1 day ago

 public function create()
    {
        $users= mail::select('name','user_name')->get();
        return view('mail',compact('users'));
    }

and view should be like

<select name="user">
        @foreach($users as $user)
         <option value="{{ $user->user_name}}">{{ $user->name}}</option>
        @endforeach
    </select>

vipin93 left a reply on How To Avoid Duplicate Value • 1 day ago

try like

@foreach($students as $student)
          
            <td>{{$student->id}} </td>
            <td>{{$student->first_name}} &nbsp; {{$student->last_name}}</td>
            <td>{{$student->mobile_number}}</td>
            <td>{{$student->semester}}</td>
            <td>{{$student->branch}}</td>
            <td>{{$student->fees->total_fees}}</td>
            <td>{{$checks->total_fees}}   </td>
 @foreach($check as $checks) 
            <td>{{$student->fees->total_fees - $checks->total_fees}}</td>
           @endforeach 
        </tr> 
        @endforeach </tbody>

vipin93 left a reply on Logging Out Of One Guard (5.3) • 1 day ago

u can use laravel auth logout which is post method so u can use in every guard

 <a href="{{ url('/logout') }}"
                                            onclick="event.preventDefault();
                                                     document.getElementById('logout-form').submit();">
                                            <i class="fa fa-power-off" aria-hidden="true"></i> Logout
                                        </a>

                                        <form id="logout-form" action="{{ url('/logout') }}" method="POST" style="display: none;">
                                            {{ csrf_field() }}
                                        </form>

vipin93 left a reply on How To Avoid Duplicate Value • 1 day ago

as I said we are not magician without proper explanation and code we can help

vipin93 left a reply on Eror • 1 day ago

wtf we are not magician without your code and errors

vipin93 left a reply on Pagination With Filtering - Issue In Pagination Goes Back To Unfiltered Data • 1 day ago

{{ $members->appends(request()->only(['country','state','region'.....]))->links() }}

vipin93 left a reply on Checkbox Checked Problem • 1 day ago

why u using another view

vipin93 left a reply on Two Parameters Via A Link • 1 day ago

public function getSingle($category = null, $slug = null)
              {
                  $post = Post::where('slug', '=', $slug)->where('category_id',$category)->first();
                  return view('blog.single',compact('post'));
               }

in your view herf="Categories/{{ $category->id }}/{$post->slug}

vipin93 left a reply on Pagination With Filtering - Issue In Pagination Goes Back To Unfiltered Data • 1 day ago

{{ $members->appends(request()->only(['country']))->links() }}

vipin93 left a reply on Checkbox Checked Problem • 1 day ago

<form method="get">

<input type="text" name="search" class="form-control" placeholder="Search...">
<button type="submit" class="btn btn-success">
<i class="fa fa-search" aria-hidden="true"></i> Search</button>
<input type="checkbox" name="on"> on 
</form>

  if($request->valve){

    $result = DB::select("SELECT * FROM personals 
                              LEFT JOIN functions ON personals.funkce = functions.id 
                              LEFT JOIN departments ON personals.oddeleni = departments.id 
                              WHERE klapka = $request->search");//here u using where it means if $request is not match the yor klapka  it give nothing so here if want search may be empty so use "Orwhere", u can use Elaqaut which very easy 

    }

vipin93 left a reply on Checkbox Checked Problem • 1 day ago

show your form and controller

vipin93 left a reply on How To Add Search Box In My Form To Fetch Data From Database • 1 day ago

did you google about this lots of stuff available, without code its very problem to us to write code for u

vipin93 left a reply on Checkbox Checked Problem • 1 day ago

just check your route

vipin93 left a reply on Htmlentities() Expects Parameter 1 To Be String, Object Given • 1 day ago

first use ``` so can your code readable and rty to debug dd($check)

28th March, 2017

vipin93 left a reply on The Connection To This Site Is Not Secure • 1 day ago

i wonder even he not changed the development environment, its cause the problem when he try to run artisan command if he do some mistake he may loss data try to change "local to production"

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.