Skip to content

Instantly share code, notes, and snippets.

View andriangungon's full-sized avatar

andriangungon

View GitHub Profile
package net.simplifiedcoding.recyclerviewoptionsmenu;
import android.content.Context;
import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.PopupMenu;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.View;
@andriangungon
andriangungon / build.grade
Created October 4, 2017 08:47
this code will include sqlite viewer as soon as you build your app.
debugCompile 'im.dino:dbinspector:3.4.1@aar'
@Override
public void setUserVisibleHint(boolean isVisibleToUser) {
super.setUserVisibleHint(isVisibleToUser);
if (isVisibleToUser) {
populateData();
}
}
//sqlite viewer
debugCompile 'im.dino:dbinspector:3.4.1@aar'
{{ Form::label('is_featured', 'Feature') }}
{{ Form::select('is_featured', [
0 => 'No',
1 => 'Yes',
], null, array('class' => 'form-control') ) }}
$start = Video::where('id', 11)->pluck('start')->first();
$start = Video::orderBy('id', 'DESC')->pluck('start')->first();
Opening A Form
Opening A Form
{!! Form::open(['url' => 'foo/bar']) !!}
//
{!! Form::close() !!}
By default, a POST method will be assumed; however, you are free to specify another method:
echo Form::open(['url' => 'foo/bar', 'method' => 'put'])
Note: Since HTML forms only support POST and GET, PUT and DELETE methods will be spoofed by automatically adding a _method hidden field to your form.
You may also open forms that point to named routes or controller actions:
rm -rf .git
rm -rf .git