code
stringlengths
17
296k
docstring
stringlengths
30
30.3k
func_name
stringlengths
1
89
language
stringclasses
1 value
repo
stringlengths
7
63
path
stringlengths
7
153
url
stringlengths
51
209
license
stringclasses
4 values
public function authorize() { return auth()->user()->can('update',$this->route('pageImage')); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Images/Update.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Images/Update.php
MIT
public function rules() { return [ 'src' => 'required|max:255', 'title' => 'nullable|max:100', 'caption' => 'nullable|max:100', 'location' => 'nullable|max:50', ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Images/Update.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Images/Update.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Images/Update.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Images/Update.php
MIT
public function authorize() { return auth()->user()->can('create', PageImage::class); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Images/Store.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Images/Store.php
MIT
public function rules() { return [ 'src' => 'required|max:255', 'title' => 'nullable|max:100', 'caption' => 'nullable|max:100', 'location' => 'nullable|max:50', ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Images/Store.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Images/Store.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Images/Store.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Images/Store.php
MIT
public function authorize() { return auth()->user()->can('update',$this->route('pageImage')); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Images/Edit.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Images/Edit.php
MIT
public function rules() { return [ ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Images/Edit.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Images/Edit.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Images/Edit.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Images/Edit.php
MIT
public function authorize() { return auth()->user()->can('index', PageImage::class); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Images/Index.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Images/Index.php
MIT
public function rules() { return [ ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Images/Index.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Images/Index.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Images/Index.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Images/Index.php
MIT
public function authorize() { return auth()->user()->can('download', Page::class); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Download.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Download.php
MIT
public function rules() { return [ ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Download.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Download.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Download.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Download.php
MIT
public function authorize() { return auth()->user()->can('upload', Page::class); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Upload.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Upload.php
MIT
public function rules() { return [ 'file' => 'mimes:csv,xlsx,xls,txt' ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Upload.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Upload.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Upload.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Upload.php
MIT
public function authorize() { return auth()->user()->can('bulkUpdate', Page::class); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/BulkUpdate.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/BulkUpdate.php
MIT
public function rules() { return [ 'page_id.*' => 'required|exists:seo_pages,id', 'robot_index.*' => 'required|max:50', 'title.*' => 'required|max:70', 'description.*' => 'required|max:170', ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/BulkUpdate.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/BulkUpdate.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/BulkUpdate.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/BulkUpdate.php
MIT
public function authorize() { return auth()->user()->can('view', $this->route('page')); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Show.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Show.php
MIT
public function rules() { return [ ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Show.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Show.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Show.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Show.php
MIT
public function authorize() { return auth()->user()->can('create', Page::class); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Create.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Create.php
MIT
public function rules() { return [ ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Create.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Create.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Create.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Create.php
MIT
public function authorize() { return auth()->user()->can('delete', $this->route('page')); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Destroy.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Destroy.php
MIT
public function rules() { return [ ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Destroy.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Destroy.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Destroy.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Destroy.php
MIT
public function authorize() { return auth()->user()->can('update', $this->route('page')); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Update.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Update.php
MIT
public function rules() { return [ 'page.path' => 'required|max:255|unique:seo_pages,path,' . $this->route('page')->id, 'route_name' => 'nullable|max:150', 'page.robot_index' => 'nullable|max:50', 'page.robot_follow' => 'nullable|max:50', 'page.canonical_url' => 'nullable|max:255', 'page.title' => 'required|max:70', 'page.description' => 'required|max:170', ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Update.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Update.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Update.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Update.php
MIT
public function authorize() { return auth()->user()->can('create', Page::class); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Store.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Store.php
MIT
public function rules() { return [ 'page.path' => 'required|unique:seo_pages,path|max:255', 'route_name' => 'nullable|max:150', 'page.robot_index' => 'nullable|max:50', 'page.robot_follow' => 'nullable|max:50', 'page.canonical_url' => 'nullable|max:255', 'page.title' => 'required|max:70', 'page.description' => 'required|max:170', ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Store.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Store.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Store.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Store.php
MIT
public function authorize() { return auth()->user()->can('update', $this->route('page')); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Edit.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Edit.php
MIT
public function rules() { return [ ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Edit.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Edit.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Edit.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Edit.php
MIT
public function authorize() { return auth()->user()->can('index', Page::class); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Index.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Index.php
MIT
public function rules() { return [ ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Index.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Index.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/Pages/Index.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/Pages/Index.php
MIT
public function authorize() { return auth()->user()->can('create', MetaTag::class); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Create.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Create.php
MIT
public function rules() { return [ ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Create.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Create.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Create.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Create.php
MIT
public function authorize() { return auth()->user()->can('delete', $this->route('meta_tag')); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Destroy.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Destroy.php
MIT
public function rules() { return [ ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Destroy.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Destroy.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Destroy.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Destroy.php
MIT
public function authorize() { return auth()->user()->can('update', $this->route('meta_tag')); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Update.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Update.php
MIT
public function rules() { return [ 'name' => 'nullable|max:50|unique:seo_meta_tags,name,' . $this->route('meta_tag')->id, 'property' => 'nullable|max:100|unique:seo_meta_tags,property,' . $this->route('meta_tag')->id, 'status' => 'required|max:50', 'group' => 'nullable|max:50', 'input_type' => 'required|max:50', 'input_help_text' => 'nullable|max:255', 'input_placeholder' => 'nullable|max:255', 'input_label' => 'nullable|max:255', 'input_info' => 'nullable|max:255', 'visibility' => 'required|max:50', ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Update.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Update.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Update.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Update.php
MIT
public function authorize() { return auth()->user()->can('create', MetaTag::class); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Store.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Store.php
MIT
public function rules() { return [ 'name' => 'nullable|unique:seo_meta_tags,name|max:50', 'property' => 'nullable|unique:seo_meta_tags,property|max:100', 'status' => 'required|max:50', 'group' => 'nullable|max:50', 'input_type' => 'required|max:50', 'input_help_text' => 'nullable|max:255', 'input_placeholder' => 'nullable|max:255', 'input_label' => 'nullable|max:255', 'input_info' => 'nullable|max:255', 'visibility' => 'required|max:50', ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Store.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Store.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Store.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Store.php
MIT
public function authorize() { return auth()->user()->can('update', $this->route('meta_tag')); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Edit.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Edit.php
MIT
public function rules() { return [ ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Edit.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Edit.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Edit.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Edit.php
MIT
public function authorize() { return auth()->user()->can('index', MetaTag::class); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Index.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Index.php
MIT
public function rules() { return [ ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Index.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Index.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/MetaTags/Index.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/MetaTags/Index.php
MIT
public function authorize() { return auth()->user()->can('index', Setting::class); }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/SiteMaps/Update.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/SiteMaps/Update.php
MIT
public function rules() { return [ 'page_id.*' => 'required|exists:seo_pages,id', 'change_frequency.*' => 'required', 'priority.*' => 'required' ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/SiteMaps/Update.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/SiteMaps/Update.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/SiteMaps/Update.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/SiteMaps/Update.php
MIT
public function authorize() { return true; }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Create.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Create.php
MIT
public function rules() { return [ ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Create.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Create.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Create.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Create.php
MIT
public function authorize() { return true; }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Destroy.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Destroy.php
MIT
public function rules() { return [ ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Destroy.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Destroy.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Destroy.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Destroy.php
MIT
public function authorize() { return true; }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Update.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Update.php
MIT
public function rules() { return [ 'rel ' => 'nullable|unique:seo_link_tags,rel|max:255', 'href ' => 'nullable|max:255', 'status ' => 'required|max:255', 'page_id ' => 'nullable|numeric', ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Update.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Update.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Update.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Update.php
MIT
public function authorize() { return true; }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Store.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Store.php
MIT
public function rules() { return [ 'rel ' => 'nullable|unique:seo_link_tags,rel|max:255', 'href ' => 'nullable|max:255', 'status ' => 'required|max:255', 'page_id ' => 'nullable|numeric', ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Store.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Store.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Store.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Store.php
MIT
public function authorize() { return true; }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Edit.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Edit.php
MIT
public function rules() { return [ ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Edit.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Edit.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Edit.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Edit.php
MIT
public function authorize() { return true; }
Determine if the user is authorized to make this request. @return bool
authorize
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Index.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Index.php
MIT
public function rules() { return [ ]; }
Get the validation rules that apply to the request. @return array
rules
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Index.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Index.php
MIT
public function messages() { return [ ]; }
Get the error messages for the defined validation rules. @return array
messages
php
digitaldreams/laravel-seo-tools
src/Http/Requests/LinkTags/Index.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Requests/LinkTags/Index.php
MIT
public function tools() { $data = []; return view('seo::pages.dashboard.tools', $data); }
Import Export and Download Pages
tools
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/DashboardController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/DashboardController.php
MIT
public function index(Index $request) { return view('seo::pages.settings.index', [ 'records' => Setting::paginate(10), 'model' => new Setting(), 'sitemaps' => (new SiteMap())->all(), 'metaTags'=>[] ] ); }
Display a listing of the resource. @return Response
index
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/SettingController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/SettingController.php
MIT
public function edit(Edit $request, Setting $setting) { return view('seo::pages.settings.edit', [ 'model' => $setting, ]); }
Show the form for editing the specified resource. @return Response
edit
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/SettingController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/SettingController.php
MIT
public function update(Update $request, Setting $setting) { $setting->fill($request->all()); if ($setting->save()) { session()->flash(config('seo.flash_message'), 'Setting successfully updated'); return redirect()->route('seo::settings.index'); } else { session()->flash(config('seo.flash_error'), 'Something is wrong while updating Setting'); } return redirect()->back(); }
Update a existing resource in storage. @return Response
update
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/SettingController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/SettingController.php
MIT
public function index(Index $request) { $q = $request->get('search'); $object = $request->get('object'); $builder = Page::withCount(['pageImages']); if (!empty($q)) { $builder = $builder->search($q); } if (!empty($object)) { $builder = $builder->where('object', $object); } return view('seo::pages.pages.index', [ 'objects' => DB::table('seo_pages')->distinct()->get(['object'])->pluck('object')->toArray(), 'records' => $builder->latest()->paginate(6) ]); }
Display a listing of the resource. @return Response
index
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/PageController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/PageController.php
MIT
public function show(Show $request, Page $page) { $data = [ 'record' => $page, 'success' => false ]; $pageAnalysis = new KeywordAnalysis($page->getFullUrl(), $page->keyword); if ($pageAnalysis->isSuccess()) { $data = array_merge($pageAnalysis->fromCache()->save()->toArray(), $data); $data['result'] = $pageAnalysis->run()->result(); $data['success'] = true; } return view('seo::pages.pages.show', $data); }
Display the specified resource. @return Response @throws \Exception
show
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/PageController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/PageController.php
MIT
public function create(Create $request) { $page = new Page(); $metaTags = $page->pageLevel(); if (isset($metaTags['og'])) { $og = $metaTags['og']; unset($metaTags['og']); } if (isset($metaTags['twitter'])) { $twitter = $metaTags['twitter']; unset($metaTags['twitter']); } return view('seo::pages.pages.create', [ 'record' => $page, 'og' => $og, 'twitter' => $twitter, 'metaTags' => $metaTags, ]); }
Show the form for creating a new resource. @return Response
create
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/PageController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/PageController.php
MIT
public function store(Store $request) { $model = new Page; $model->fill($request->get('page')); if ($model->save()) { $model->saveMeta(request()->get('meta', [])); $model->saveMeta(Seo::upload(request()->file('meta',[]), $model)); $tag = new Tag($model); $tag->make()->save(); session()->flash(config('seo.flash_message'), 'Page saved successfully'); return redirect()->route('seo::pages.index'); } else { session()->flash(config('seo.flash_error'), 'Something is wrong while saving Page'); } return redirect()->back(); }
Store a newly created resource in storage. @return Response
store
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/PageController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/PageController.php
MIT
public function edit(Edit $request, Page $page) { $keywordAnalysis = false; $metaTags = $page->metaTags(); if (isset($metaTags['og'])) { $og = $metaTags['og']; unset($metaTags['og']); } if (!empty($page->focus_keyword)) { $keyword = new KeywordAnalysis($page->path, $page->focus_keyword); $keywordAnalysis = $keyword->run()->result(); } if (isset($metaTags['twitter'])) { $twitter = $metaTags['twitter']; unset($metaTags['twitter']); } return view('seo::pages.pages.edit', [ 'record' => $page, 'og' => $og, 'twitter' => $twitter, 'metaTags' => $metaTags, 'keywordAnalysis' => $keywordAnalysis ]); }
Show the form for editing the specified resource. @return Response
edit
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/PageController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/PageController.php
MIT
public function update(Update $request, Page $page) { $page->fill($request->get('page')); if ($page->save()) { $page->saveMeta(request()->get('meta', [])); $page->saveMeta(Seo::upload(request()->file('meta',[]), $page)); $tag = new Tag($page); $tag->make()->save(); session()->flash(config('seo.flash_message'), 'Page successfully updated'); return redirect()->route('seo::pages.index'); } else { session()->flash(config('seo.flash_error'), 'Something is wrong while updating Page'); } return redirect()->back(); }
Update a existing resource in storage. @return Response
update
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/PageController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/PageController.php
MIT
public function destroy(Destroy $request, Page $page) { if ($page->delete()) { session()->flash(config('seo.flash_message'), 'Page successfully deleted'); } else { session()->flash(config('seo.flash_error'), 'Error occurred while deleting Page'); } return redirect()->back(); }
Delete a resource from storage. @param Request $request @return Response @throws \Exception
destroy
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/PageController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/PageController.php
MIT
public function index(Index $request) { return view('linktag.index', ['records' => LinkTag::paginate(10)]); }
Display a listing of the resource. @return \Illuminate\Http\Response
index
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/LinkTagController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/LinkTagController.php
MIT
public function create(Create $request) { return view('linktag.create', [ 'model' => new LinkTag, ]); }
Show the form for creating a new resource. @return \Illuminate\Http\Response
create
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/LinkTagController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/LinkTagController.php
MIT
public function store(Store $request) { $model = new LinkTag; $model->fill($request->all()); if ($model->save()) { session()->flash('app_message', 'LinkTag saved successfully'); return redirect()->route('seo_link_tags.index'); } else { session()->flash('app_message', 'Something is wrong while saving LinkTag'); } return redirect()->back(); }
Store a newly created resource in storage. @return \Illuminate\Http\Response
store
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/LinkTagController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/LinkTagController.php
MIT
public function edit(Edit $request, LinkTag $linktag) { return view('linktag.edit', [ 'model' => $linktag, ]); }
Show the form for editing the specified resource. @return \Illuminate\Http\Response
edit
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/LinkTagController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/LinkTagController.php
MIT
public function update(Update $request, LinkTag $linktag) { $linktag->fill($request->all()); if ($linktag->save()) { session()->flash('app_message', 'LinkTag successfully updated'); return redirect()->route('seo_link_tags.index'); } else { session()->flash('app_error', 'Something is wrong while updating LinkTag'); } return redirect()->back(); }
Update a existing resource in storage. @return \Illuminate\Http\Response
update
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/LinkTagController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/LinkTagController.php
MIT
public function destroy(Destroy $request, LinkTag $linktag) { if ($linktag->delete()) { session()->flash('app_message', 'LinkTag successfully deleted'); } else { session()->flash('app_error', 'Error occurred while deleting LinkTag'); } return redirect()->back(); }
Delete a resource from storage. @return \Illuminate\Http\Response @throws \Exception
destroy
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/LinkTagController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/LinkTagController.php
MIT
public function index(Index $request) { return view('seo::pages.meta_tags.index', ['records' => MetaTag::paginate(6)]); }
Display a listing of the resource. @return Response
index
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/MetaTagController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/MetaTagController.php
MIT
public function create(Create $request) { return view('seo::pages.meta_tags.create', [ 'model' => new MetaTag, ]); }
Show the form for creating a new resource. @return Response
create
php
digitaldreams/laravel-seo-tools
src/Http/Controllers/MetaTagController.php
https://github.com/digitaldreams/laravel-seo-tools/blob/master/src/Http/Controllers/MetaTagController.php
MIT