Getting started:
Related tutorials:
| # CREATED BY BEN O'SULLIVAN / BIGBENO37 (GITHUB.COM/BIGBENO37) | |
| # LICENSED UNDER CREATIVE COMMONS 'Attribution 4.0 International' LICENSE | |
| # https://creativecommons.org/licenses/by/4.0/ | |
| # FEEL FREE TO USE AND ADAPT THIS SCRIPT IN COMMERCIAL AND NON COMMERICAL PRODUCTS | |
| # AS LONG AS PROPER ACCREDITATION IS GIVEN | |
| # VARIABLES | |
| echo -e "\x1B[01;95mWhat would you like to name your Laravel project?\x1B[0m" | |
| read LARAVEL_PROJECT_NAME |
| public class JavaBasic { | |
| /** | |
| * @param args the command line arguments | |
| */ | |
| public static void main(String[] args) { | |
| Scanner input = new Scanner(System.in); | |
| int num; | |
| System.out.println("Enter Any Number: "); | |
| num = input.nextInt(); |
| @if(isset($errors)&&count(errors) > 0) | |
| <div class="alert alert-dismissible alert-danger fade show"> | |
| <button type="button" class="close" data-dismiss="alter" aria-label="Close"> | |
| <span aria-hidden="true">×</span> | |
| </button> | |
| @foreach($errors->all() as $error) | |
| <li> | |
| <strong>{!! $error !!}</strong> | |
| </li> | |
| @endforeach |
| <a class="btn btn-outline-secondary" onclick=" | |
| var result = confirm('Are you sure you wish to delete this project?'); | |
| if (result) { | |
| event.preventDefault(); | |
| document.getElementById('delete-form').submit(); | |
| }" | |
| >Delete</a> | |
| <form id="delete-form" action="{{ route('companies.destroy', [$company->id]) }}" method="POST" style="display: none;"> | |
| <input type="hidden" name="_method" value="delete"> | |
| {{ csrf_field() }} |
Getting started:
Related tutorials:
| public function destroy(Company $company) | |
| { | |
| $findCompany = Company::find( $company->i); | |
| if ($findCompany->delete()) { | |
| return redirect()->route('companies.index')->with('success','Company Deleted Successfully'); | |
| } | |
| return back()->withInput()->with('error','Delectation Error'); | |
| } |
| package com.example.marufalom.calculator; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.os.Bundle; | |
| import android.view.View; | |
| import android.widget.EditText; | |
| import android.widget.TextView; | |
| import android.widget.Toast; | |
| import java.util.Random; |
| <?php | |
| use Illuminate\Database\Seeder; | |
| use App\Product; | |
| use Faker\Factory as Faker; | |
| class ProductsTableSeeder extends Seeder | |
| { | |
| /** |
| <?php | |
| namespace { | |
| exit("This file should not be included, only analyzed by your IDE"); | |
| } | |
| namespace Illuminate\Support { | |
| /** | |
| * @method Fluent first() |
| @if ($errors->any()) | |
| <div class="alert alert-danger"> | |
| <ul> | |
| @foreach ($errors->all() as $error) | |
| <li>{{ $error }}</li> | |
| @endforeach | |
| </ul> | |
| </div> | |
| @endif |